Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wait statements
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

I am trying to automate a .NET and VB based application.
Instead of wait(15) before a VB window appears
I am using a function
Code:
Public Function Stayfor(Stay_object)
waitfor = Stay_object.exist(2)
checktime=1
While Not waitfor
wait(1)
waitfor=Stay_object.Exist(5)
checktime=checktime+1
If checktime=15 then
waitfor=True
End if
Wend
End Function

I put this function in Library file, However when I call this function it takes longer and does not recognize the VB window immediately but waits for whole 15-20 seconds before it proceeds . What is the solution in this case when I want to avoid wait statements.
Reply


Messages In This Thread
wait statements - by sunny rao - 07-31-2008, 09:59 AM
RE: wait statements - by surya_7mar - 07-31-2008, 12:45 PM
RE: wait statements - by sunny rao - 08-01-2008, 10:36 AM
RE: wait statements - by RaghavendraRaichur - 08-20-2008, 07:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to create a Reusable code for Repetitive Reporter.ReportEvent Statements notknownspammer 0 2,098 10-02-2014, 12:25 AM
Last Post: notknownspammer
  Where can I get statements for changing qtp settings. anil2u 4 6,188 05-21-2012, 12:12 AM
Last Post: ravi.gajul
  Control Statements piyush957 2 3,465 11-25-2011, 11:18 AM
Last Post: piyush957

Forum Jump:


Users browsing this thread: 1 Guest(s)