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.

SahiNotNyWindowException with popup

sethrohitsethrohit Members
edited November -1 in Sahi - Open Source
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

Comments

  • 1r2R11r2R1 Members
    edited March 2008
    I have the same problem :

    "
    _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
Sign In or Register to comment.