-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
  • 151
  • 1
  • 17

1 Answers1

0

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

returnValue = !\$\(.*\)\.isDisplayed\(\);
Dima Parzhitsky
  • 6,233
  • 3
  • 24
  • 53