If the script has a return value (i.e. if the script contains a return
statement), then the following steps will be taken:
return document.querySelector("body");
WebElement webelement = ((JavascriptExecutor)driver).executeScript("return document.querySelector("body");");
--
You received this message because you are subscribed to a topic in the Google Groups "webdriver" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webdriver/0pJ4BxFp41Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webdriver+unsubscribe@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at https://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.