Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change "wait time" in conditional statement If
#3
Solved: 11 Years, 4 Months ago
You need to put the time to wait in parenthesis, .Exist(2), so that the statement will wait for that time in seconds. If you leave this blank, QTP will wait for the default 20 seconds. So:
Code:
IF JavaWindow.(...).JavaButton("Accept").[b]Exist [/b]Than
(...)
End If

Code:
Should be
IF JavaWindow.(...).JavaButton("Accept").[b]Exist(2)[/b] Then
(...)
End If
Reply


Messages In This Thread
RE: How to change "wait time" in conditional statement If - by FredMan - 02-29-2008, 01:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do you Change Run mode mid script? Caleytown 6 7,194 03-25-2021, 08:27 AM
Last Post: RB26578
  [UFT] Change property of object (WpfButton) robertosalemi 2 2,616 11-22-2016, 12:43 PM
Last Post: Ankur
  Dynamic change of name for Webtables prakashreddy 1 2,377 10-25-2014, 09:53 PM
Last Post: supputuri
  How can I change my test folders, globally? atester 0 2,019 10-03-2014, 04:37 PM
Last Post: atester
  JavaDialog change every time i run my test Pkapoor 3 2,984 06-28-2013, 09:27 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)