myseleniumtraining
This blog is for Automation Test Engineers
Home
Saturday, 2 September 2017
How to print title of browser title
WebDriver driver=new FirefoxDriver();
JavascriptExecutor js=(JavascriptExecutor )driver;
String browsertitle=(String)js.executeScript("return navigator.userAgent");
System.out.println(browsertitle);
Email This
BlogThis!
Share to X
Share to Facebook
By Chai on September 02, 2017
0
Newer Post
Older Post
Home
0 comments:
Post a Comment
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment