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.
Add assertions for image
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.
_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.