This blog is for Automation Test Engineers

Friday 16 March 2018

How to get title of page

System.setProperty("webdriver.ie.driver","E:\\IEDriverServer.exe";
Webdriver driver=new InternetExplorerDriver();
driver.get("https://www.flipkart.com/");
String title=driver.getTitle();
System.out.println(title);


0

0 comments:

Post a Comment