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.

Please suggest me "WAIT" action to handle both panel and IFRAME window

nithinsn14nithinsn14 Members
edited November -1 in Sahi - Open Source
Hi ,

In our application (in Dashboard) we have 2 panels
1)EXTjs panel
2)we have added an IFRAME as an HTMl

Once we loggin to application EXTjs will load 1st then after 1 min IFRAME will load with in Extjs panel.

Create Packet Button is in EXTJS panel which loads soon .

but if sahi click on Create Packet button befor IFRAME loads means our application will through error .

Please suggest me "WAIT" action to over come this ??????????


_click(_submit("Login"));
_wait(1000000);
_click(_button("Create Packet"));

Comments

  • Hi nithinsn14,

    You can perform wait on the Create Packet .

    _wait(100000,_button("Create Packet"));

    Check if this solves your issue.

    Regards
    Sumitra
  • I tried it. it didnt worked .

    as create packet button is in panel.sahi will identify it on login itself and clicks on create packet button.

    script will fail :-(
  • nithinsn14nithinsn14 Members
    edited September 2011
    I will make my question simple.

    Our application dashboard will take 2 min to load.

    after 2 min i want to tell sahi to click on create packet button.

    please suggest changes i need to do in below script?

    _setValue(_textbox("login"), "xyz");
    _setValue(_password("password"), "xyz");
    _click(_submit("Login"));
    _wait(2000000);
    _click(_button("Create Packet"));
  • Please anybody suggest . i am struck :-(
  • narayannarayan Administrators
    Nithin,

    Your extjs page loads, but the iframe has not loaded yet. You need to wait for something on the iframe to show up. So If you had a button _button("Button On Iframe") on the iframe, make sure that it loads before you do _click(_button("Create Packet"));

    Use

    _wait(100000, _button("Button On Iframe"));
    _click(_button("Create Packet"));

    Regards,
    Narayan
  • Thank you narayan for your kind reply.
    Problem was with our application .we resolved it. Now sahi is identifying Iframe button and executing the script successfully.
This discussion has been closed.