We recently migrated our codedui project from VS2010 to VS2013. Everything was working fine in VS2010, but in 2013 playback jumps to search controls as even before the page loads properly.
To understand this properly consider this scenarios:
- Launch browser with url "www.example.com"
- Enter login
- Enter password
- click submit. [on clicking submit it navigates to user profile page]
- Navigate to url "www.example.com/sometask";
- Click some button on "sometask" page
Now in VS2013, just after clicking submit in step 4, Codedui executes the steps 5 and tries to navigate to "sometask" page even before the user profile page is loaded. So it tries to navigate to next page even before the login is validated.
So basically it doesn't wait for the previous operation to complete. Any solution to this problem? I am not looking for inserting WaitForControlReady() everywhere as it was working earlier in VS2010.
Edit 1 : This is happening with
BrowserWindow.NavigateToUrl()
only. It doesn't wait for the previous page load to complete and starts navigating even before the document is ready.