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.
An issue in clicking one on a popup
Can anyone help me to resolve this issue. I am not able to click on a popup. This is the Js function corresponding to that popup
OS: Windows Xp
Browser: Firefox 9
sahi 3.5
window.onbeforeunload = function() {
return "Data will be lost if you leave the page, are you sure ?";
};
I am not able to click on this popup.
Regards,
SP
OS: Windows Xp
Browser: Firefox 9
sahi 3.5
window.onbeforeunload = function() {
return "Data will be lost if you leave the page, are you sure ?";
};
I am not able to click on this popup.
Regards,
SP
This discussion has been closed.
Comments
Why not try with _expectConfirm API.Go through the following link
http://sahi.co.in/w/_expectConfirm
This might help you.
Regards,
Theeran.
Waiting for response
SP
This is a tricky dialog box. One work around I can suggest is to remove the onbeforeunload before you click on the button which unloads the page.
Like this:
_call(window.onbeforeunload=null);
_click(_button("Submit")); // or link click that triggers the page unload.
Regards,
Narayan
Regards,
SP