Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to run same script for different URLs when loading time is different
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi Mansi,

Use the below code and try instead of giving wait command,

Code:
blnImg=Browser("InSync :: Login").Page("InSync :: Dash Board").Image("ctl00$Header1$Image2").EXist

count=1
While Not blnImg
    Wait (1)
     blnImg=Browser("InSync :: Login").Page("InSync :: Dash Board").Image("ctl00$Header1$Image2").Exist

     count=count+1
     If count=50 then
        blnImg=True
    End if
Wend


Thanks,
Ricks
Reply


Messages In This Thread
RE: How to run same script for different URLs when loading time is different - by ricks_ngl - 09-18-2012, 07:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 635 11-05-2023, 03:55 PM
Last Post: lravi4u
  How do you Change Run mode mid script? Caleytown 6 7,360 03-25-2021, 08:27 AM
Last Post: RB26578
  QTP not recogonising object during run time Lavanya N 2 3,747 10-28-2015, 12:46 PM
Last Post: vinod123
  Writing to Run time data table Neetha 5 12,212 08-27-2015, 10:18 AM
Last Post: supputuri
  How to run driver script to kick off scripts stored in QC? shipu 0 3,615 04-30-2014, 02:39 AM
Last Post: shipu

Forum Jump:


Users browsing this thread: 5 Guest(s)