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

Selecting value from mouse hover window

2 Answers 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 04 May 2013, 07:23 AM
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 Answers, 1 is accepted

Sort by
0
Amit
Top achievements
Rank 1
answered on 07 May 2013, 05:34 AM
Its been 2 days, still there is no reply. Can anyone help me in this.
0
Plamen
Telerik team
answered on 07 May 2013, 01:43 PM
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
Tags
General Discussions
Asked by
Amit
Top achievements
Rank 1
Answers by
Amit
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or