Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Execute JavaScript using Selenium WebDriver in C#

IWebDriver driver;
IJavaScriptExecutor js = (IJavaScriptExecutor)driver;
string title = (string)js.ExecuteScript("return document.title");
 
PREVIOUS NEXT
Tagged: #Execute #JavaScript #Selenium #WebDriver
ADD COMMENT
Topic
Name
6+9 =