User.Click not working

2 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    22 posts
    Member since:
    Apr 2011

    Posted 27 Jul 2011 Link to this post

    I have a test which clicks a RadRibbonButton on a RadRibbonView:

    var button = app.Find.ByAutomationId("MyButton");

    It only works if I uncomment the Thread.Sleep and that only works if its more than 2000.

    Am I doing something wrong?

  2. Plamen
    Plamen avatar
    8 posts

    Posted 29 Jul 2011 Link to this post

    Hi Jonathan,

    What the symptom sounds like is that the button is not ready to be clicked for some reason (we can't see your app so we have no clue why). Is the button disabled and then enabled when something happens? That's what it sounds like to me is that the test script is outrunning your application. Can you record a video of the script running with the delay so that it works? Maybe there's something else in the UI that is changing that we can watch for to see when the button is clickable. If it's changing from Disabled to Enabled we can wait for it to be enabled before clicking on it. Or maybe there some window overlaying the button preventing us from clicking on it? Jing is a pretty good and free screen recorder.

    Best wishes,
    the Telerik team
    Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

    Have you looked at the new Online User Guide for Telerik Test Studio?
Back to Top