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.

Not Able To Click On Confirm

sandeeppatel344sandeeppatel344 Members
edited December 2012 in Sahi Pro
//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 (I HAve Been thru History Posts)

_expectConfirm("confirm that you want to leave", true);
_click(_link("Log off")); //..........................AFTER THIS CONFIRM APPEARS

_button("Leave Page").click(); //ERROR

_expectConfirm("confirm that you want to leave", true); //null
_button("Leave Page").click(); //ERROR

_expectConfirm("confirm that you want to leave", false); //null


_assertEqual(_lastConfirm(), "confirm that you want to leave"); //null

_assertEqual("Did you get it?", _lastConfirm("confirm that you want to leave")); //null

//Help ..............................................

Answers

Sign In or Register to comment.