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.
SahiNotNyWindowException with popup
Hi,
I am recording script for a page which on submission opens a new popup as well as refreshes this page (i.e. opener) also (through javascript).
Recording goes fine but when I try to playback, I get SahiNotMyWindowException on step that refers popup (for example _popUp("XYZ")._setValue(_textbox("firstName"), $firstName);). I think thats happening because of the fact that opener is also getting refreshed and this command gets executed in opener instead of popup.
I'll appreciate any insight / suggestion.
thanks
rohit
I am recording script for a page which on submission opens a new popup as well as refreshes this page (i.e. opener) also (through javascript).
Recording goes fine but when I try to playback, I get SahiNotMyWindowException on step that refers popup (for example _popUp("XYZ")._setValue(_textbox("firstName"), $firstName);). I think thats happening because of the fact that opener is also getting refreshed and this command gets executed in opener instead of popup.
I'll appreciate any insight / suggestion.
thanks
rohit
Comments
"
_setValue(_textbox("login_user"), "G00000");
_wait(1500);
_setValue(_password("login_password"), "G00000");
_wait(1500);
_click(_image("Valider"));
_wait(4000);
_click(_image("Afficher la page organiseur")); <-- This "_click" must open a new window: OK
_wait(20000);
_popup("organizerPopup")._click(_checkbox("intervention_id[1]")); <-- Check a checkbox in the new window : OK
_wait(1500);
_popup("organizerPopup")._click(_image("Ouvrir le dossier[0]")); <-- This "_click" must open a new window: NOT OK
_wait(1500);
_popup("folderIncidentPopup462")._click(_image("Acc