Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wait() function in QTP
#6
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi

WaitProperty – instruct QTP to wait the execution process until it matches with the object property value based on the specified time.

E.g.
Code:
Browser("Welcome: Mercury Tours").WaitProperty "name" "Welcome: Mercury Tours" 5000

name - property name

Welcome: Mercury Tours - property value

5000 - number of milli seconds to wait


Wait – Instruct QTP to forcibly wait for specified time period.

E.g. Wait(5) ‘5 Seconds

Exist – method is used to instruct QTP to wait the execution process based on the
specified time and returns Boolean value as per the object existence

E.g.
Code:
If Browser(“Welcome: Mercury Tours”).Exist(5) Then
    
           <Code>


     End If

~Regards
Reply


Messages In This Thread
Wait() function in QTP - by galstar - 08-19-2010, 06:01 PM
RE: Wait() function in QTP - by PrabhatN - 08-19-2010, 06:20 PM
RE: Wait() function in QTP - by galstar - 08-19-2010, 06:29 PM
RE: Wait() function in QTP - by venkatbatchu - 08-19-2010, 09:10 PM
RE: Wait() function in QTP - by basanth27 - 08-24-2010, 08:06 AM
RE: Issue related to updation in Reusable Action in QTP - by QTPLearn - 08-23-2010, 04:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling a function in a Test Script from a function library anupam4j 3 6,180 06-26-2015, 12:31 AM
Last Post: babu123
  help with wait property function kp_usa 3 4,347 12-20-2012, 10:49 PM
Last Post: kp_usa
  wait QAVA 1 3,063 11-13-2012, 07:29 PM
Last Post: imzeeshan
  How to control WAIT time with STATIC variable? chong67 3 4,059 06-22-2012, 10:38 AM
Last Post: sshukla12
Exclamation Alternative for Wait Statement Veekay 2 8,619 03-20-2012, 07:13 PM
Last Post: swathi

Forum Jump:


Users browsing this thread: 3 Guest(s)