-
Junior Member
Selection of Rightclick menu items
Hi,
I am very new to this QTP tool. I am trying to automate our Web applications.
Here, I am facing problem of accessing right-click menu items.
This is the structure of my Menu:
If you click on "Image" icon, it opens two menus:
- Name
-AAA
-BBB
-CCC
- Dept
- XXX
- YYY
I had to access the menu item "XXX" like this:
1. Click Image icon as
Browser(one).Page(two).Image(img).FireEvent "onclick"; you will get Name(Web Element) and Dept menus. This step works fine, i am seeing two menus in AUT.
2. Move mouse over "Dept", then two sub menus XXX and YYY would be present.
3. Click YYY (which is also web element)
How to achieve step 2 and step 3. Example with code snippet is desired.
Thanks in advance,
Ram
-
Moderator
Re: Selection of Rightclick menu items
2. FireEvent "onMouseOver"
3. Since this one is just a click action, you need to get Object properties of the one that you need for this action.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules