Hi,
When I disabled the code below, issue stopped occur.
Sub While_loop_odb (par1, val1, val2, timeout)
x = 0
Do While x < timeout
set field = Sys.Browser(ProjectSuite.Variables.Browser.Iterator("name")).Page("*").Find(par1,val1,1000,True)
If field.Exists = False Then
Call Delay(1000, "Please wait for: "&val1)
x = x+1
Else
log.Message(&val1 &" Found !:D")
Exit Do
End if
Loop
If x = timeout Then
Log.Error "Timeout: " &val1,"", pmNormal, null, Sys.Desktop.Picture()
Else
end if
set link = Sys.Browser(ProjectSuite.Variables.Browser.Iterator("name")).Page("*")
For i = 1 to timeout
If link.Find(par1,val1,1000,True).wText <> val2 Then
Call Delay(1000, "Please wait loading..." )
Else
log.Message(" Load: "&val2)
exit for
end if
If i = timeout Then
Log.Error "Timeout: " &val2,"", pmNormal, null, Sys.Desktop.Picture()
Else
end if
Next
End Sub
What is wrong and what can cause this error?