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.
Sahi is not able to identify if any extra values are coming.
Now a days I m facing one problem with Sahi.In one screen there is one link "Sunday".I have asserted this.So when the script is running if it finds Sunday,then it shows playback successful.but sometimes with this Sunday I am getting Monday.But Sahi is not able to identify the Monday.If it finds Sunday,its showing Successful.I want that Sahi shows failure because I have asserted Sunday only.But with Sunday Monday is also coming and its not correct.
Comments
Could you please post your script here?
Regards,
Narayan
_assert(_isVisible(_span("Sunday")));
_assertEqual("Sunday", _getText(_span("Sunday")));
_assertContainsText("Sunday", _span("Sunday"));
In this case sunday is coming,but with sunday Monday is also coming.But Sahi is not able to identify that With Sunday ,Monday is also coming,
You will have to add _assertNotExists(_span("Monday")); explictly so that Sahi identifies that with Sunday,Monday is also coming.
Regards
Sumitra
You may use the sahi-controller to identify the Accessor for all the DOM elements that should return failure if they exist,then append _assertNotExists(accessor value); to your script and it should return failure if those elements exists. Make sure that the parameters passed to _assertNotExists API is valid.
Regards,
Theeran.