Most likely since the menu is dynamic, the app is not building the menu until you open it.
When the app is asked for the menus via the accessibility subsystem, the menus are either not there, or not currently correctly built for the context.
Options to force the application into updating its menus include:
- Switch out and back to the application, and then use the Select Menu Item action.
- Use the Show Menu variant (leave the item field blank) of the Select Menu Item action to show the menu item first, and then the Select Menu Item.
- Simulate a click in the menu bar, and then use the Select Menu Item action.
- Desperate measures, simulate a click in the menu bar, and then use arrows and typeahead (Insert Text by Typing) to select the menu item.
There is an entire topic expanding on these instructions at:
In this case, using the Show Menu option of the Select or Show a Menu Item action would be a likely requirement for building it.
So Show Menu “Accounts” item “”.