ui-automation icon indicating copy to clipboard operation
ui-automation copied to clipboard

Exists a way to make a right-click on a clickable element?

Open Farmijo opened this issue 7 years ago • 3 comments

Great framework, is helping me a lot.

In need to right-click elements that are clickable. Exists a way currently, or there is an intention to do it?

Farmijo avatar Dec 01 '17 14:12 Farmijo

The underlying automayion library that is in Windows 8.1 and beyond (i.e. NOT Windows 7) has a method called showContextMenu. This is exposed in this library in the AutomationElement.showContextMenu method. However, it seems to be very dependent on the way in which context menus are implemented in the actual application, so it will fail sometime.s to actually display the context menu.

mmarquee avatar Dec 02 '17 09:12 mmarquee

Yep, does seems to work for the app which i'm applying that. If i could get the coords for the UIAutomation elements declared, at least I could send a right click with robot. I will try back to work. Thanks :)

Farmijo avatar Dec 02 '17 18:12 Farmijo

Does not*

Farmijo avatar Dec 02 '17 18:12 Farmijo