Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sync points
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
You can use this code to avoid the script getting in the infinite loop in case the page is not displayed.
Code:
Function Page_exist
   intcount=0
Do     
    strStatus =Browser("title : = ").Object.StatusText
    intcount = intcount +1
    If intcount = 100 Then
        Exit Function
    End If
    If instr(strStatus ,"Done")> 0 Then
        Exit function
    End If
    wait 1
Loop While instr(strStatus,"Done") < 1
End Function
Reply


Messages In This Thread
Sync points - by fran101 - 06-28-2012, 05:51 PM
RE: Sync points - by supputuri - 06-28-2012, 10:26 PM
RE: Sync points - by Shridevi.Salagare - 07-04-2012, 03:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  picking different points in UFT using VB Script azjk786 0 1,061 12-14-2020, 09:57 AM
Last Post: azjk786
Question Cross Browser Sync Not Working geodude 0 1,968 04-07-2017, 08:43 AM
Last Post: geodude
  How to use sync function 22sumit 2 3,480 06-16-2015, 06:27 PM
Last Post: 22sumit
Wink Webedit Javascript sync issue praveenzack 3 3,280 10-10-2012, 06:25 PM
Last Post: praveenzack
  .Sync is NOT waiting for browser to complete current navigation.. can anyone help? mansis 4 4,606 09-14-2012, 06:53 PM
Last Post: mansis

Forum Jump:


Users browsing this thread: 2 Guest(s)