-1

So I want to find all of the following in a .cs file

driver.FindElementByXPath("XPathHere").SendKeys(keys);

Where XPathHere is different each time. I've tried using the following in Visual studio find and Replace.

driver.FindElementByXPath("[^"]+").SendKeys(keys);

But that is unable to find the whole thing I believe it is an issue with the parentheses in regex how can I fix this?

Thank you!

Coderz
  • 154
  • 2
  • 7
  • 17

1 Answers1

-1

After further research, I found the answer :P

driver.FindElementByXPath[(]"[^"]+"[)][.]SendKeys[(]keys[)];
Coderz
  • 154
  • 2
  • 7
  • 17