rushikesh
9 years agoContributor
Problem with selection in popup menu
Please refer attached image of popup menu in my testing application.
I want to select "Edit Definition.." option from the options. I use code :
Object.PopupMenu.Click("[0]");
This works correctly.
Problem is when I want to select "Select Machine..." option from the options.
I am using the code :
Object.PopupMenu.Click("[1]");
With above code i am getting error "The menu item 1 is disabled" even though this option is in enabled state.
If use code :
Object.PopupMenu.Click( "Select Machine..." );
it works. But what is problem with above code ?