Forum Discussion

sarya's avatar
sarya
Frequent Contributor
14 years ago

how to select sub-menu items on right-click item on web

Hi,



I need to click the sub-menu item "Content Access" but I want to make it static as the menuitem number keeps changing whenever new additions are there in the build .This "Content Access" sub menu item is present in another palce to where it gets clicked correctly if I call it using nativeWebObject but here when I use the same it does not recognise it as all the properties for this menu item and the other one are same and it does not recognises it. Can we make a script on going to the memebr and right-clicking it from the sub-mneu items like creating a loop and finding the sub-menu items .Is there any way it can be done and how?



Thanks.

2 Replies


  • Hi Sumedha,





    As I understand, you have two different context menu objects with very similar properties. If so, I doubt that both context menus are visible at the same time, so you can simply add Visible=true to the list of recognition crietria - this will allow you to retrieve the menu which is currently visible.


  • zaheer_akhter's avatar
    zaheer_akhter
    Occasional Contributor
    I am working on java desktop application I have to click on the submenu which is nested inside using test complete and Java script. Menu looks like this


    Tools->1stlevel->Second level.



    I am able to click till 1st level if second level not there. But if second level is persent script is not able to find 1st level itself.