Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
305
Add WinMenu objects into QTP
posted

Hi,

In my application, I need to right click on a read only text and it displays 3 options. I need to verify these 3 options are displayed correctly. The commands to right click are -

SwfWindow("ABC").SwfWindow("XYZ").SwfWindow("MNO").SwfTable("Note").RightClick "0", "0;NoteText"

SwfWindow("ABC").SwfWindow("XYZ").SwfWindow("MNO").SwfTable("Note").SelectMultiple "", "", ""

SwfWindow("ABC").SwfWindow("XYZ").SwfWindow("MNO").SwfTable("Note").SelectRow "0"

After right clicking, if I want to select "Edit" option (one of the 3 options above), the command is -

SwfWindow("ABC").SwfWindow("XYZ").SwfWindow("MNO").SwfTable("Note").WinMenu("ContextMenu").Select "Edit"


But, how can I verify if the option "Edit" is displayed correctly in the right click menu or not?

Thanks,

Rakesh