-1

I am unable to use regex in the Find All. I have turned regex on but it is not finding any results

I am looking for code that is:

returnValue = !$(someClass.someVariable).isDisplayed();

with the part someClass.someVariable being the wild card in my case and I am trying to use the regex:

returnValue = !$(.*)isDisplayed();

enter image description here

Alex
  • 160
  • 1
  • 2
  • 22

1 Answers1

0

When using regexp, you have to escape special characters, — in your case, $, (, ), and .:

returnValue = !\$\(.*\)\.isDisplayed\(\);
Parzh from Ukraine
  • 7,999
  • 3
  • 34
  • 65