| || |
How to get TestObject of popup-menu?
I want to perform a click on the menu item of a context-menu. But I do not know how to get the TestObject of a c ontext-menu.
For example, in the html page, I get the TestObject of a html.image, I perform a right click to popup the context-menu. Then I use RationalTestScript.getScreen().windowFromPoint(poi ntOfcontextmenu) to get the IWindow object, the window's ClassName is #32768, which is the window contains the context-menu. I just wonder how to get the TestObject of the context-menu from the window that I get.
Thanks for your response
Re: How to get TestObject of popup-menu?
I am new to RFT, In my application, I have a Menu Item which is not visible until the mouse is dragged on to it. To identify that object, I have used the Hover() method on the Main menu item, then I have used the waitforexistence() verification point to click the sub menu item.
I hope it also works for your case, just try it, update me with the outcome