Synthuse / synthuse-src

Synthuse (Synthetic-User) is a portable java base software testing framework for desktop windows applications.
Apache License 2.0
6 stars 5 forks source link

How to get contents of context menu? #8

Open alexkogon opened 8 years ago

alexkogon commented 8 years ago

Hi Ed,

I'm trying to use Synthuse to automate some tests but have a problem where I right click on something to bring up a context menu, but then if I try to use Synthuse to get the contents of the menu of course it disappears immediately when the app loses focus. Any idea on how that might work?

ejakubowski commented 8 years ago

Hey Alex To work with menus and context menus we can use 2 configurable shortcut keys. First to refresh the Windows Enumerated XML while the menu system is open you can press the Refresh shortcut keys CTRL+SHIFT+3 This setting is configurable in the synthuse.properties file. For example: targetKey=` refreshKey=3

The second shortcut key is the target key, which will automatically target whatever your mouse is hovering over. To use that you simply hover over the menu item with the mouse and press the keys CTRL+SHIFT+`

Let me know if that doesn't work. Thanks.

On Sep 22, 2015 8:02 AM, "Alex Kogon" notifications@github.com wrote:

Hi Ed,

I'm trying to use Synthuse to automate some tests but have a problem where I right click on something to bring up a context menu, but then if I try to use Synthuse to get the contents of the menu of course it disappears immediately when the app loses focus. Any idea on how that might work?

— Reply to this email directly or view it on GitHub https://github.com/Synthuse/synthuse-src/issues/8.