This blog is for Automation Test Engineers

Friday 16 March 2018

How to get size of object

WebDriver driver= new FirefoxDriver();
driver.get("https://www.google.com"):
WebElement button=driver.findElement(By.name("btnK"));
System.out.print(button.getSize());


0

0 comments:

Post a Comment