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

Menu Fly Outs

2 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Arsalan
Top achievements
Rank 1
Arsalan asked on 30 Sep 2010, 03:58 PM
I am using Telerik WebUI  Test Studio. I have recorded a series of action which involves clicking on a menu item which shows a flyout menu and then clicking on another link on this flyout menu. But the script fails when it comes to the "clicking of the link on the flyout menu".  The reason for failure is that it never finds the flyout menu link on the page. Any idea ? do i have to reduce the speed of the test run ? 

My problem can also be understood by taking this site for example. I want to click on the link " The telerik difference" which shows up when one clicks on the menu item "About telerik" at the top of www.telerik.com. In my case the tool never finds the link "The telerik difference" on the page and the script fails. Any help?
   

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Petkov
Telerik team
answered on 01 Oct 2010, 08:25 AM
Hello Arsalan,

The dynamic menu test recording might be a bit tricky but the problem you explain is easy to resolve. You just need to add verifications the dynamic elements exist or are visible before you record the click action over those. The approach is demonstrated in the "Recording Best Practices" video you can find here and we highly recommend for review.

I have recorded a sample test over telerik.com for you. Please find it attached here. The important step is #3 where I added a WaitFor step for the visibility of the element before clicking it.

Please let us know if you have further questions.

Regards,
Konstantin Petkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Arsalan
Top achievements
Rank 1
answered on 02 Oct 2010, 12:55 PM
It actually resolves the problem. Good response time and a very clear answer. Bravo ... Thanks 
Tags
General Discussions
Asked by
Arsalan
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Arsalan
Top achievements
Rank 1
Share this question
or