09-16-2008, 10:11 AM
Hi All,
I am working on a Web Application.As per my application functionality, a popup sometimes appears on a particular page and some time not.To handle this, I tried with the below sample line of code..
1)
2)
I tried with above both way but if popup appears on page then QTP click Popup within second and if Popup does not appear then QTP takes around 3-4 min to recognise that popup is not there and then procced to next step. I have already using Visible property of Dialog object as mandatory property.
Could you guys please suggest me how can avoid this waiting time if pop up is not appearing?
Thanks in advance
Devkant
I am working on a Web Application.As per my application functionality, a popup sometimes appears on a particular page and some time not.To handle this, I tried with the below sample line of code..
1)
Code:
If Popup.ExistThen
Browser().Dialog().WinButton().Click
End if
2)
Code:
OptionalStep.Browser().Dialog().WinButton().Click
I tried with above both way but if popup appears on page then QTP click Popup within second and if Popup does not appear then QTP takes around 3-4 min to recognise that popup is not there and then procced to next step. I have already using Visible property of Dialog object as mandatory property.
Could you guys please suggest me how can avoid this waiting time if pop up is not appearing?
Thanks in advance
Devkant