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