Forum Discussion
neha_sharma
10 years agoContributor
Hi,
You can initialise a global variable total_delay = 1000 and use this function to Add delay to objects.Log this after the end of every script and then reset it to 1000 before staring execution of next script.
Function AddDelay(obj_type,obj_name)
Set Window = Aliases.IE.Page("*")
cycle = 120
count = 0
Do While Not (window.NativeWebObject.Find(obj_type,obj_name).Exists)
Delay(1000)
count = count +1
total_delay = total_delay + 1000
if count = cycle Then
Log.Error("Required ' "&obj_name&" ' not found on page.Please look into the issue.")
Exit Do
End If
Loop
End Function
Thanks,
Neha
You can initialise a global variable total_delay = 1000 and use this function to Add delay to objects.Log this after the end of every script and then reset it to 1000 before staring execution of next script.
Function AddDelay(obj_type,obj_name)
Set Window = Aliases.IE.Page("*")
cycle = 120
count = 0
Do While Not (window.NativeWebObject.Find(obj_type,obj_name).Exists)
Delay(1000)
count = count +1
total_delay = total_delay + 1000
if count = cycle Then
Log.Error("Required ' "&obj_name&" ' not found on page.Please look into the issue.")
Exit Do
End If
Loop
End Function
Thanks,
Neha
Related Content
Recent Discussions
- 23 hours agodhundley