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.
Popup Confirm will choose "OK" automatically....
Hi everyone,
I'm just facing a tricky problem,
here is my code:
_click(_image("logout"));
_expectConfirm("Do you really want to logout?",false);
Normally,It should choose "No" and back to the system,right?
but it automatically choose "yes" and leaving the system...
even without the statement: _expectConfirm("Do you really want to logout?",false);
It leaved the system as well ,instead of staying on the popup confirm window...
where may I go wrong?
Thanks for helping~
I'm just facing a tricky problem,
here is my code:
_click(_image("logout"));
_expectConfirm("Do you really want to logout?",false);
Normally,It should choose "No" and back to the system,right?
but it automatically choose "yes" and leaving the system...
even without the statement: _expectConfirm("Do you really want to logout?",false);
It leaved the system as well ,instead of staying on the popup confirm window...
where may I go wrong?
Thanks for helping~
Best Answer
-
Sorry....I figured out that I misconfigure the sequence of code...
expectConfirm should be send before _click...
THX...
This discussion has been closed.