Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problen in handling the Poupup
#1
Solved: 11 Years, 3 Months, 2 Weeks ago
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)
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
Reply


Messages In This Thread
Problen in handling the Poupup - by Devkant - 09-16-2008, 10:11 AM
RE: Problen in handling the Poupup - by niranjan - 09-16-2008, 08:10 PM
RE: Problen in handling the Poupup - by rahul1234 - 11-10-2009, 09:52 PM
RE: Problen in handling the Poupup - by Saket - 11-20-2009, 10:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Difference between error handling and exception handling venkatbatchu 6 26,588 12-11-2018, 05:11 PM
Last Post: smitapawar610

Forum Jump:


Users browsing this thread: 3 Guest(s)