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

Select a RadMenuitem which is not visible on the page

1 Answer 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pritima
Top achievements
Rank 1
Pritima asked on 07 Feb 2011, 10:34 AM
Hi
I am new to this tool 'Automated QA Edition'. I have to perform a 'Click' operation over a RadMenuitem which is not visible by default. You have to scroll down and select the item.
This menu item is a place holder for many Sub menu items. e.g File -> Exit.

But the recorder is not able to simulate this action. I have created a new test project to record this scenario. Am i missing some pre condtions.
Request please advise.

Thanks and Best Regards
Pritima Virmani

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 07 Feb 2011, 04:27 PM
Hello Pritima,
    scrolling actions are not recorder by default. You can manually simulate a scrolling action if you need it.

When executing a test you will only need to scroll RadMenus if they are virtualized. Virtualized menus are populated with data dynamically when you scroll to a certain section of the menu. With "normal" RadMenus your RadMenuItem can be manipulated during Test Execution even when it's not visible.

If you do need to scroll down a menu you have a few options. You can do it in a Coded Step like this:
Manager.Desktop.Mouse.TurnWheel(800, MouseWheelTurnDirection.Backward); 
Make sure you've got the focus on the RadMenu in order for this to work.

You can also add scrolling actions from the pop-up menu (screen shot 1).

This info should get you started, please let me know if you need further assistance!

Greetings,
Stoich
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Tags
General Discussions
Asked by
Pritima
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or