Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Reading ToolTip text in in Selenium-WebDriver

Category: Selenium WebDriver
public static String tooltipText(WebDriver driver, By locator){
String tooltip = driver.findElement(locator).getAttribute("title");
return tooltip;
}

Leave a Reply

Your email address will not be published. Required fields are marked *