how GetEval() in selenium webdriver works?

Solved 1 Answers 152 Views Selenium
0 1
I am using GetEval() in selenium RC 1. How do I use it with WebDriver?

1 Answer

Best answer
You can use JavaScriptExecuter and convert it into String

String result = (String) ((JavascriptExecutor) driver).executeScript("MyJavaScript");
answered by (192 points)
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

We have resolved 1.2k+ Software Testing queries!

Top Contributors