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.

Can we capture image tooltip?

viswaviswa Members
edited May 2011 in Sahi - Open Source
Hi,

Is there a way to capture image tooltip?

I have an image object like

ElementStub image = editor.image("className");

When I'm hovering over the image, tooltip is appearing. Needs to do automate testing whether tooltip appearing or not. How do we do this?

Also need some of the image tag attributes like title, alt from image object. How can we do this?

Comments

  • AkshadaAkshada Members
    Hi,

    Yes... u can automate the tool-tip.
    The tooltip property set is actually the Title for the image/icon.
    So u can get the "Title" using fetch("title") and compare with the expected tooltip and get going !!
  • viswaviswa Members
    thanks Akshada.... It works
This discussion has been closed.