Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
502 views
in Selenium by
retagged by
I am using GetEval() in selenium RC 1. How do I use it with WebDriver?

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
selected by
 
Best answer
You can use JavaScriptExecuter and convert it into String

String result = (String) ((JavascriptExecutor) driver).executeScript("MyJavaScript");


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...