Solved
Forum Discussion
Colin_McCrae
9 years agoCommunity Hero
rushikesh wrote:
If use code :
Object.PopupMenu.Click( "Select Machine..." );
it works. But what is problem with above code ?
This is much better code anyway. Your other version is using index numbers. Not good. If they add a new menu item, the index numbers change, and your test is broken. Always better to use as static an identifier as possible for doing things like this. Of course, they could also update the text for it, but it's a much lower probability breaker than an index.
And baxatob could well be right. There may be hidden options. Who knows. Not us without access to the object and it's properties ....