Selecting value from mouse hover window

3 posts, 0 answers
  1. Amit
    Amit avatar
    11 posts
    Member since:
    Feb 2013

    Posted 04 May 2013 Link to this post

    Hi,

    I have following scenario:

    1. Mouse-hover on field and few values will be shown in new left window on mouse-hover (Mouse-hover screenshot).
    2. Select any value from values displayed.

    While recording script is capturing this step but failing while replay. I observed id changing dynamically and handled that but still no luck.

    Failure Information: 
    ~~~~~~~~~~~~~~~
    Exception thrown executing coded step: '[Test_CodedStep2] : Click 'ItemMiddleTableCell''.
    InnerException:
    ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
    FindExpression used: 
    [class 'Exact' menuItem selected] AND [id 'StartsWith' /contextMenu/ID1294181034889000/ID] AND [radioID 'Exact' 2]

       at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)

    This element is available in dom (DOM screenshot) loaded while running the test .

    Thanks,
    Amit
  2. Amit
    Amit avatar
    11 posts
    Member since:
    Feb 2013

    Posted 07 May 2013 Link to this post

    Its been 2 days, still there is no reply. Can anyone help me in this.
  3. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 07 May 2013 Link to this post

    Hi Amit,

    Looking the provided screenshot of the DOM tree, your Find Logic looks correct to me, however error like this could be also thrown if Test Studio acts too quickly and the element is not completely loaded in the DOM tree. Usually when you have an action step(like a Mouse Hover), that changes something in your app, which means that also changes the DOM tree, it's recommended to use a Wait step right after that step. In this way Test Studio will wait up to the time set in the Timeout property, refreshing the DOM tree on every 500 ms, and when the element is found will proceed with the next step. 

    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. 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