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.
Not Able to Click Confirm
There is confirm with text "confirm that you want to leave"
With Two Buttons "Leave Page" and "Stay On Page"...........
Tried :: Is There Any Other Way Than this
_expectConfirm("confirm that you want to leave", true);
_click(_link("Log off"));
_assertEqual("Some questio?", _lastConfirm());
_button("Leave Page").click();
_expectConfirm("confirm that you want to leave", true);
_button("Leave Page").click();
_expectConfirm("confirm that you want to leave", false);
_assertEqual(_lastConfirm(), "confirm that you want to leave");
_assertEqual("Did you get it?", _lastConfirm("confirm that you want to leave"));
Help ..............................................
With Two Buttons "Leave Page" and "Stay On Page"...........
Tried :: Is There Any Other Way Than this
_expectConfirm("confirm that you want to leave", true);
_click(_link("Log off"));
_assertEqual("Some questio?", _lastConfirm());
_button("Leave Page").click();
_expectConfirm("confirm that you want to leave", true);
_button("Leave Page").click();
_expectConfirm("confirm that you want to leave", false);
_assertEqual(_lastConfirm(), "confirm that you want to leave");
_assertEqual("Did you get it?", _lastConfirm("confirm that you want to leave"));
Help ..............................................