18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Testing "tool-tips"

AkshadaAkshada Members
edited November -1 in Sahi - Open Source
Hi Narayan,

I want to test tool-tips .
I used .mouseover() action but it does not accept elements/arguments in Java (Eclipse).
Can you please explain how do i do it with some example

I am writing a code in Java(Eclipse) using "Twist-sahi controller" that records scripts in Java.

Here, I have a normal image ( "x" Delete button) whose Tooltip on mouseover shows "Delete"
How do i test it??

Thanking in advance!!

Regards,
Akshada

Comments

  • narayannarayan Administrators
    To test tool tips, you can check if the "alt" or "title" property is correctly set to "Delete"

    assertEquals("Delete", browser.image("x.jpg").fetch("alt"));

    should do it.

    Regards,
    Narayan
  • Hi Narayan,

    Yea..... that worked!! :)
    Thank you!!!

    Regards,
    Akshada
This discussion has been closed.