Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change "wait time" in conditional statement If
#3
Solved: 10 Years, 9 Months, 3 Weeks 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 6,567 03-25-2021, 08:27 AM
Last Post: RB26578
  [UFT] Change property of object (WpfButton) robertosalemi 2 2,503 11-22-2016, 12:43 PM
Last Post: Ankur
  Dynamic change of name for Webtables prakashreddy 1 2,286 10-25-2014, 09:53 PM
Last Post: supputuri
  How can I change my test folders, globally? atester 0 1,890 10-03-2014, 04:37 PM
Last Post: atester
  JavaDialog change every time i run my test Pkapoor 3 2,792 06-28-2013, 09:27 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)