Ask a Question

Regular Expressions - FindElement

SOLVED
Majid2021
Visitor

Regular Expressions - FindElement

Need help on syntax to  number (2,3,7) in the example below to handle via Regular Expressions. Using Java scripting.

 

FindElement("#tab-key-2 > .lm-TabBar-tabCloseIcon > svg")

FindElement("#tab-key-3 > .lm-TabBar-tabCloseIcon > svg")

FindElement("#tab-key-7 > .lm-TabBar-tabCloseIcon > svg")

1 REPLY 1
mikef
Staff

Hi @Majid2021 

 

I'm not fully sure what you're trying to do, but if the different key numbers are causing a NameMapping issue you can use wildcard * to skip over that char. 

 

More info on scripting regex here : https://support.smartbear.com/testcomplete/docs/scripting/regular-expressions.html#C

 

Using wildcards in Object Recognition : https://support.smartbear.com/testcomplete/docs/reference/misc/using-wildcards.html

 

Hope this helps

 

cancel
Showing results for 
Search instead for 
Did you mean: