Forum Discussion

ErikLarson's avatar
ErikLarson
New Contributor
6 days ago

Unable to access popup menu from MFC Ribbon Dropdown button

I have tried everything I can think of to access the dropdown menu for this ribbon button, and I keep coming up short. Hoping someone here can assist me with this.

Our application has a "program options" button that opens a rather long context menu. 6 of the items in that context menu have sub-menus that open. I need to be able to select an item from one of those sub-menus during a test.

I tried:

The first line correctly selects the ribbon panel containing the button we need, the second one clicks that button and the popup menu appears on the screen. The playback then sits for a few seconds with a message about waiting for the menu, and then fails with an error message "Popup menu was not found" the target for this "PopupMenu" line is set to the button that I clicked to open the popup menu, which according to everything I can find in SmartBear documentation should be correct. I have tried setting it to the button, the panel the button is in, the ribbon bar, and the application, and I get the same result -- the menu cannot be found.

Anyone have any idea what I should try next?

5 Replies

    • ErikLarson's avatar
      ErikLarson
      New Contributor

      I already have MSAA enabled in project settings. Before enabling MSAA I was not able to select the individual buttons or pieces of the ribbon control. Now I am able to select the options button and click it to open it's popup menu, but I have so far not been able to interact with that popup menu.

    • ErikLarson's avatar
      ErikLarson
      New Contributor

      I don't think we have that add on available. Is there a way to do this without that?

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    I'm able to access the following menu New Items -> More Items -> Task Request using the following key word actions, against the ribbon bar in Outlook 365

    TestComplete might be recording the actions incorrectly for you - I suggest you remove PopupMenu and replace it with something similar to what is shown in the above image. Just to see if it works for you.