Micro Focus QTP (UFT) Forums
Exist() Time - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Exist() Time (/Thread-Exist-Time)



Exist() Time - stevol - 11-13-2008

Hi,
in my test I have a dialog form which may appear or not, so I manage it with an If condition as:
Code:
If Browser().Dialog().WinButton().Exist Then
   Browser().Dialog().WinButton().Click
End If

If dialog form appears the script is quick, but if it doesn't appear there is a lot of time in which script wait for the dialog form appears.
If I use something as "Exist(3)" howewer time expected by script is not only of 3 seconds... there must be a previous check made by QTP which requires more time, but i don't know how I can disable it.
Any suggestion?
Thanks

[I use QTP_8.2, only Descriptive Programming, no objects in OR, Smart Identification is disabled... ]


RE: Exist() Time - niranjan - 11-16-2008

I usually use .Exist(0.1) and its better.


RE: Exist() Time - yaron.assa - 11-24-2008

Try looking in File->Settings->Web->Browser Navigation Timeout