How to capture a tool tip message

Hello,

I have a web page where tool tip message appear when user enter some invalid input for particular fields. Please can somebody help me with giving me a hint on how to capture the message. I have tried get text but that didnt work. The screenshot of the webpage and curresponding HTML are given in the attachment.

Regards,
Neethu

Hi,

tooltip message is actually the value of title attribute, so:

String tooltip = WebUI.getAttribute(myInputTestObject, "title")

1 Like

Hello @Marek_Melocik,

Thanks, that worked. The console output as below.