Selenium Java - JavaScriptExecutor
What will be the output of the following Selenium Java code snippet?
Assuming the page title is "Welcome Page".
JavascriptExecutor js = (JavascriptExecutor) driver;
String title = (String) js.executeScript("return document.title;");
System.out.println(title);Assuming the page title is "Welcome Page".
