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.
Need help for radio button by using wait function
hi,
i facing some issue with _wait() function
In my application having 3 pages, the time to navigate from page 1 to page 2 is not so Constant ( some time it took 5 min and some time it will take only 2 min and same as from page 2 to page 3.
In page 1 i use _wait function with some condition as shown below:
_wait(100000,_span("Personal"));
the above _wait function working as expected.
where as in my second page i need to wait for a radio box,but in this case i am facing problem with wait.
i use syntax as below in 2nd page for radio button
_wait(100000,_radio("serviceTypePostpaid"));
when i use above wait , the script is still waiting even though radio button is visible on the page.
is any thing i need to add for radio button for wait?
OS: Window XP
Browser: IE8
build2011-07-19
Thanks,
Anilkumar
i facing some issue with _wait() function
In my application having 3 pages, the time to navigate from page 1 to page 2 is not so Constant ( some time it took 5 min and some time it will take only 2 min and same as from page 2 to page 3.
In page 1 i use _wait function with some condition as shown below:
_wait(100000,_span("Personal"));
the above _wait function working as expected.
where as in my second page i need to wait for a radio box,but in this case i am facing problem with wait.
i use syntax as below in 2nd page for radio button
_wait(100000,_radio("serviceTypePostpaid"));
when i use above wait , the script is still waiting even though radio button is visible on the page.
is any thing i need to add for radio button for wait?
OS: Window XP
Browser: IE8
build2011-07-19
Thanks,
Anilkumar
Comments
Thanks,
Anilkumar
i struck with above issue and my script is still waiting even though radio button visible on the page
can some one help me plsss.
Thanks,
AnilKumar
I have tired with the same scenario and the _wait() works as expected.
What version of sahi are you using? Try with the latest version of sahi.
Are you getting the same error when you specify condition with other elements?
Also ensure, if there is any other radio button with same id and hidden?
Also check if the radio button is in a popup window?
Regards,
Theeran.
only one radio button is there in the Pop up window. and i want to wait Popup window until radio button visible .
i think i am using latest Shai build.
can you plsease help
OS: Window XP
Browser: IE8
build2011-07-19
Thanks,
Anilkumar
Can some one help on above issue ie. i want my script wait untill radio button visible (in pop up window)
have you tried using _isVisible in the condition?
i'm using the condition below for some elements that i'm waiting to be visible.
i.e.
while(!(_isVisible(_radio("serviceTypePostpaid"))) ) {
_wait(100000);
}
hope it would work in your case.
Regards,
lonely_girl