Verifying ToolTip Using Selenium webdriver



public String GetToolTipText() throws InterruptedException{ 

  builder.clickAndHold(driver.findElement(By.className("locator here"))).build().perform(); 

  Thread.sleep(2000); 

  return driver.findElement(By.xpath("locator of tooltip")).getText(); 

}

Comments

Popular posts from this blog

Testing Webservice with SoapUI Having Windows Authentication

How to Re-run Failed Scenarios in Cucumber