06-28-2012, 05:51 PM
Hi,
I'm trying to use sync points in my tests but i've put the sync in a function and tried to make it as generic as possible to be able to use it in different tests on different pages. My function looks like this:
It is supposed to wait untill the status bar in the browser says "Done"
when I run the test it keeps complaining that the object is not in the repository even though i've added the object to the repository for each of the browser pages that i will be running my tests against.
I have also tried
and
In tests where possible I have used .Exist(10) but this is not always possible
I would be greatful for any ideas or suggestions.
I'm trying to use sync points in my tests but i've put the sync in a function and tried to make it as generic as possible to be able to use it in different tests on different pages. My function looks like this:
Code:
Function SyncBrowser
Browser(".*").WinStatusBar("msctls_statusbar32").WaitProperty "text", Done, 10000
End Function
It is supposed to wait untill the status bar in the browser says "Done"
when I run the test it keeps complaining that the object is not in the repository even though i've added the object to the repository for each of the browser pages that i will be running my tests against.
I have also tried
Code:
Browser("title:=.*").Page("title:=.*").Sync
and
Code:
Browser("title:=.*").Sync
In tests where possible I have used .Exist(10) but this is not always possible
I would be greatful for any ideas or suggestions.