mmarquee / ui-automation

Java wrapper for ms-uiautomation
https://mmarquee.github.io/ui-automation/
Apache License 2.0
111 stars 54 forks source link

Can't invoke() a MenuItem : AutomationException: Error: 0x80131509 #117

Closed hiddenMachine closed 3 years ago

hiddenMachine commented 3 years ago

If i try to invoke() a MenuItem, i get this error:

mmarquee.automation.AutomationException: Error: 0x80131509
    at mmarquee.automation.pattern.Invoke.invoke(Invoke.java:70)
    at mmarquee.automation.controls.AutomationBase.invoke(AutomationBase.java:754)

I don't know what it means also, there is an invoke pattern available for the MenuItem EDIT: A little more information: clicking that menu item should open another window

The MenuItem that I'm trying to click or invoke is from the "Zoom Meetings" app in the "Participants" window: Screenshot (125) and after clicking or invoking that MenuItem, I am supposed to get this window to open: Screenshot (126)

But calling the invoke() function of this MenuItem throws this exception.