Same issue we discussed few weeks ago in another thread.
RE: Time Delay issue with Exist
Hi Lorena, i also faced this issue yesterday.
when i was trying to analyse why ...this is what i have found...
Do note that it is nothing to do with obj sync timeout property.
Code:
Msgbox Browser("CreationTime:=0").Exist(0)
No of browsers open = 0
Here i was expecting to timeout in 0 seconds to return false ..but it took around 5 seconds.
Code:
Msgbox Browser("CreationTime:=0").Exist(5)
No of browsers open = 0
Here i was expecting to timeout in 5 seconds to return false ..but it took around 10 seconds. (adds approx 5 seconds)
when u have a browser open, it returns true @ once w/o any wait.
Instead of creation, i also tried with other properties, the behavior is same.
Code:
Msgbox Browser("CreationTime:=0").Page("micclass:=Page").WebEdit("name:=userid").Exist(0)
No of browser open = 1 or > 1
no webedit in that name.
it reurns false w/o any wait.
So, Exist gets timeout as expected only atleast one browser is open. if not, it takes additional time.
Currently, i have overriden Browser exist method using RegisterUserFunc.
ie, only if the no of the browsers open > 0, it will use browser's Exit method. if no browser's open, no need to call browser exist and it will return false at once.
Hope you have got the idea now.