Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
Farmijo opened this issue Dec 1, 2017 · 3 comments
Open

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

Farmijo opened this issue Dec 1, 2017 · 3 comments

Comments

@Farmijo
Copy link

Farmijo commented Dec 1, 2017

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?

@mmarquee
Copy link
Owner

mmarquee commented Dec 2, 2017

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.

@Farmijo
Copy link
Author

Farmijo commented Dec 2, 2017

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
Copy link
Author

Farmijo commented Dec 2, 2017

Does not*

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants