Forum Discussion

n_v_isaev's avatar
n_v_isaev
Occasional Contributor
12 years ago

MainMenu problem


I need to test the application menu and click on the item [0]|[0] (as in the picture): 



 


code:


 


w.MainMenu.Click('[0]|[0]');


 


I have the result:







 


I think it is because the mouse cursor is moved along a path like in the picture:



And on the way to activate the second item on the main menu.


How to perform click on the item 0-0 correct?

  • n_v_isaev's avatar
    n_v_isaev
    Occasional Contributor
    It's the same thing. The problem is not in the naming of
  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Nikolay,


     



    You may try to split the single click operation into two separate ones. Something like this:



    w.MainMenu.Click('[0]');



    w.SecondaryMenuWindow.Click('[0]', 5, 5);



    (The coordinates were added to prevent mouse move to the submenu item's center which may result in activation of the neighbour main menu item.)


  • n_v_isaev's avatar
    n_v_isaev
    Occasional Contributor

    Thank you

    But the example does not work.


     


    > Unable to find the object SecondaryMenuWindow. See Additional Information for details.


     


    What is an object SecondaryMenuWindow? 


    Нow I can access it and what methods it used?