How to get a tool tip of an image in webdriver

How to get a tool tip of an image in webdriver 

AkashSrivastava Default Asked on May 20, 2015 in Software.
Add Comment
1 Answers

Use the below line of code for fetching the tool tip text from the Element.

String toolTipText = driver.findElement(By.id(element's id)).getAttribute("title");
amitsharma Default Answered on October 13, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.