Clicks happen but not registered

4 posts, 0 answers
  1. Hugh
    Hugh avatar
    1 posts
    Member since:
    Apr 2013

    Posted 28 Apr 2013 Link to this post

    As i am running my test the system has to click on a tile button on the web page. The click happens the pages changes but Telerik Test Studio does not register the click and therefore does not move onto the the step. Here is a section of the log


    '29/04/2013 1:28:24 PM' - 'Fail' : 21. Click 'SettingsPngImage'
    ------------------------------------------------------------
    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)
    ------------------------------------------------------------
    '29/04/2013 1:28:24 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
    ------------------------------------------------------------


    Interestingly i have found that as it still "executing..."  the click  after it has really happened and before the time out if you hit the Esc key it will continue the test happily.

    How can i get Telerik to know that that click has happened? I have tried with simulated click on and off and its the same story.


  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 30 Apr 2013 Link to this post

    Hello Hugh,

    Try setting the SimulateRealClick property for the Click steps to True. See this article for more information. If you are using our free Testing Framework simply replace the Click() method with MouseClick().

    Regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. John Darlington
    John Darlington avatar
    5 posts
    Member since:
    Nov 2009

    Posted 01 May 2013 Link to this post

    I am using the Demo version. I have tried using the simulate real  click and with it turned off. The click is happening and the new page is loading but Telerik does not move to the next step. In some of my tests i can press esc after the click has been made to get the test to move onto the next step.
  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 02 May 2013 Link to this post

    Hello John,

    To overcome this, please also try 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).

    If you continue to have difficulty, we'll need to reproduce the issue locally in order to investigate what is happening and find a workable solution for you. Please provide us with a copy of your test and access to your application. If it is not possible to grant us access to your application, please take a Fiddler trace using FiddlerCap and send it to us in a zip file. A Jing video demonstrating the issue may also help us to better understand what is happening. If you feel any of this information is sensitive, you can submit a support ticket which is confidential, unlike this forum.

    Regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top