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

Still facing problems with clicks

1 Answer 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 25 Apr 2013, 02:12 PM
I have a table in an update panel and i each column can be sorted by clicking on an href in the column header (asc and desc)

I use recorded clicks on the header of 7 columns and then check by code the  right order of the content

very often, but not always, the click event hangs (also ajaxtimeout is set to 1500 or higher

the logged error is 

'25.04.2013 11:21:24' - 'Fail' : 13. 2_23_Click 'ProductOverviewProductGridDerivativeWKNToggleLink_DESC'
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Wait for condition has timed out
InnerException:
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.Click(Element targetElement)
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click()
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click(Boolean isClosing)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.ClickActionDescriptor.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 25 Apr 2013, 02:22 PM
Hello Michael,

Try setting the SimulateRealClick property for all Click steps to True. See this article for more information.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or