I have a test that needs to verify that an autorefresh property has been set. My first thought would be to .WaitForControlExist()
on a loading page that happens when the page refreshes but Coded UI is too slow to capture that control as it disappears after a half second or so.
My question is whether or not there is a method that will wait for the page to be refreshed that has some sort of timeout similar to WaitForControlExist()
There is a grid on the page that displays certain data. What I ended up doing was setting up the auto-refresh, adding more data to the grid, waiting the specified time, and verifying that the additional data was present.
Automated testing takes a lot of creativity sometimes you have to attack it from the side.