surbhik
3 years agoOccasional Contributor
ClickItem() not working for MainMenuStrip
I am testing a .NET project and have a MainMenuStrip object which further has a ToolstripDropDownMenu.
This does have a ClickItem() function associated with it.
When I do a record and play, it just clicks on coordinates. I want to give code like ClickItem("Edit|Copy"). The customized class name is
<clientname>.<app>.UI.MenuController.LHMenuStrip
Please let me know what can be done to acheive the desired functionality.
function Test2()
{
let catsv3 = Aliases.CATSV3;
let LHMenuStrip = catsv3.TabWindow.mainMenuStrip;
LHMenuStrip.Click(94, 13);
catsv3.ToolStripDropDownMenu.Click(38, 13);
}