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.
Please suggest me "WAIT" action to handle both panel and IFRAME window
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"));
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"));
This discussion has been closed.
Comments
You can perform wait on the Create Packet .
_wait(100000,_button("Create Packet"));
Check if this solves your issue.
Regards
Sumitra
as create packet button is in panel.sahi will identify it on login itself and clicks on create packet button.
script will fail :-(
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"));
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
Problem was with our application .we resolved it. Now sahi is identifying Iframe button and executing the script successfully.