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.

Add assertions for image

rajatsdrajatsd Members
edited November -1 in Sahi - Open Source
Hi All, can we add checkpoints (assertions) for image also using Sahi ? I tried to add assertions in an image that comes up at a button-click just like we add it for text while recording. After that I changed the image for the same button-click. But during playback the script passed the wrong (changed) image also while I was expecting it to fail. The add assertion code, that was generated during the recording is as follows :

_assertExists(_image("OpenLayersDiv902"));
_assert(_isVisible(_image("OpenLayersDiv902")));

Please help me to solve this problem so that I can add assertions to image also to validate the correctness of the image.
Sign In or Register to comment.