This is a migrated thread and some comments may be shown as answers.

Select - Dropdown Again

1 Answer 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 10 Jun 2013, 08:24 AM
Hell Telerik,
i am still facing problems with the select-Control. 
I recorded on a Select-Control the following Select: .SelectByValue("30", true) .
When running the test the first time (in Telerik Test Studio), the select is executed correctly. When rerunning the test, very often it fails here with this error log:
(It fails on the recorded step and in a coded step.)

Do you have any suggestions how i can solve it?
--------------------------------------------------------------------------------------------------------------------------
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.WaitUntilReady()
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Actions.DoSelectDropDown(Element targetElement, String data)
   at ArtOfTest.WebAii.Core.Actions.SelectDropDown(Element targetElement, String text, Boolean useValue)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.SelectDropDownActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)







1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 10 Jun 2013, 08:30 AM
Hello Michael,

The error means that Test Studio timed out waiting for the browser to return to a ready state after the Select step. To overcome this, you need to increase the ClientReadyTimeout that specifies the amount of time to wait for a ready state. You can do that from the Test List Settings (if you are running your test as part of a Test List) or from Quick Execution Options (if it's a Quick Execution).

Regards,
Plamen
Telerik
Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
Reserve your seat today!
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or