What are the regular expression patterns available in Selenium?
Submitted by: AdministratorSelenium regular expression patterns offer the same wide array of special characters that exist in JavaScript. Below are a subset of those special characters
.
any single character
[ ]
character class: any single character that appears inside the brackets
*
quantifier: 0 or more of the preceding character (or group)
+
quantifier: 1 or more of the preceding character (or group)
?
quantifier: 0 or 1 of the preceding character (or group)
{1,5}
quantifier: 1 through 5 of the preceding character (or group)
|
alternation: the character/group on the left or the
character/group on the right
( )
grouping: often used with alternation and/or quantifier
Submitted by: Administrator
.
any single character
[ ]
character class: any single character that appears inside the brackets
*
quantifier: 0 or more of the preceding character (or group)
+
quantifier: 1 or more of the preceding character (or group)
?
quantifier: 0 or 1 of the preceding character (or group)
{1,5}
quantifier: 1 through 5 of the preceding character (or group)
|
alternation: the character/group on the left or the
character/group on the right
( )
grouping: often used with alternation and/or quantifier
Submitted by: Administrator
Read Online Selenium Job Interview Questions And Answers
Top Selenium Questions
☺ | Which is the command used for displaying the values of a variable |
☺ | Can you please explain Selenium vs Imacros? |
☺ | Tell me what is the difference between an assert and a verify with Selenium |
☺ | Explain if a Selenium function requires a script argument, what would that |
☺ | What is Selenium WebDriver or Google WebDriver or Selenium 2.0? |
Top Software Testing Categories
☺ | Selenium Interview Questions. |
☺ | Soft Skills Interview Questions. |
☺ | Automation Testing Interview Questions. |
☺ | Software Quality Control Interview Questions. |
☺ | Testing Estimation Interview Questions. |