Forum Discussion

AlexKaras's avatar
AlexKaras
Icon for Champion Level 2 rankChampion Level 2
9 years ago

Re: Problem with selection in popup menu

Hi,

 

As others already wrote,

Object.PopupMenu.Click( "Select Machine..." );

is much better than

Object.PopupMenu.Click("[1]");

 

The reason why the latter did not work for you is because menu item with index 1 is a separator displayed as a grayed line between Edit Definition and Select Machine menu items.

You should use index value of 2 if you like to select Select Machine menu item by index.