| 1. |
How To Use Regular Expressions In Selenium? |
|
Answer» Regular expressions in Selenium IDE can be used with the keyword – REGEXP: as a prefix to the value and patterns NEEDS to be included for the expected values. For example if you want to use the regular expression for a command Command: verifyText in the above example Flight Confirmation is continuously CHANGING each time you run the test case. So this can be written with a regular expression as mentioned below Command: verifyText Regular expressions in Selenium IDE can be used with the keyword – regexp: as a prefix to the value and patterns needs to be included for the expected values. For example if you want to use the regular expression for a command Command: verifyText in the above example Flight Confirmation is continuously changing each time you run the test case. So this can be written with a regular expression as mentioned below Command: verifyText |
|