Results 1 to 2 of 2

Thread: Selection of Rightclick menu items

  1. #1
    Junior Member
    Join Date
    Mar 2008
    Answers
    1

    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


  2. #2

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact