Hi,
On one of my tests the steps include clicking on various links and waiting to see that the correct URL is loaded. These seem to fail (seemingly randomly, or at least according to a pattern that I can't figure out).
The scenario is as follows:
1. load index
2. wait for menu to exist
3. click on link in menu
4. confirm that browser navigates to topic page (waitforurl)
5. wait for a link to exist and then click on it
6. repeat 4 and 5 for a sub-topic page.
7. confirm that browser nagivates to article page (wait forurl)
The tests fail at 4 and 7. I can see in the browserUI that the page has correctly loaded, and finished loading within the wait period.
All I can guess is that perhaps some element on our page is confusing the picture somehow (either an iframe element or a modal window).
The exception is reproduced below:
Thanks,
Ed
-----------------------------------------------------------------------------------------------------------------------------------------
ArtOfTest.Common.Design.Exceptions.ExecutionException: Wait for condition has timed out ---> System.TimeoutException: Wait for condition has timed out at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target) at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType) at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout) at ArtOfTest.WebAii.Core.Browser.WaitForUrl(String url, Boolean isPartial, Int32 timeout) at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.WaitForUrlActionDescriptor.Execute(Browser browser) at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order) --- End of inner exception stack trace ---
On one of my tests the steps include clicking on various links and waiting to see that the correct URL is loaded. These seem to fail (seemingly randomly, or at least according to a pattern that I can't figure out).
The scenario is as follows:
1. load index
2. wait for menu to exist
3. click on link in menu
4. confirm that browser navigates to topic page (waitforurl)
5. wait for a link to exist and then click on it
6. repeat 4 and 5 for a sub-topic page.
7. confirm that browser nagivates to article page (wait forurl)
The tests fail at 4 and 7. I can see in the browserUI that the page has correctly loaded, and finished loading within the wait period.
All I can guess is that perhaps some element on our page is confusing the picture somehow (either an iframe element or a modal window).
The exception is reproduced below:
Thanks,
Ed
-----------------------------------------------------------------------------------------------------------------------------------------
ArtOfTest.Common.Design.Exceptions.ExecutionException: Wait for condition has timed out ---> System.TimeoutException: Wait for condition has timed out at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target) at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType) at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout) at ArtOfTest.WebAii.Core.Browser.WaitForUrl(String url, Boolean isPartial, Int32 timeout) at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.WaitForUrlActionDescriptor.Execute(Browser browser) at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order) --- End of inner exception stack trace ---