18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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?
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?
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?
This discussion has been closed.
Comments
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 !!