Within our coded Ranorex tests, we maintain an “input preference” which specifies whether we want to execute a test run using mouse operations wherever possible, simple keyboard operations, access or shortcut keys, touch, or invoke action. In the vast majority of cases, we are able to use any of these possibilities.
However, we are now performing operations on the icons (buttons) in the Windows system tray. Some of the operations that we need to do are typically done using the right-mouse button. We can do the equivalent using the keyboard (e.g. Win+B to move the focus to the system tray, then cursor right to the appropriate button, then the Menu key). However, I haven’t found a method of using InvokeAction to access the right-click functions for the buttons on the system tray.
Is it possible to use InvokeAction to access the right-click functionality on the system tray buttons, using a line such as:
adapter.Element.InvokeAction(action)
If so, what would “action” be in this line?
Many thanks,
John H.
InvokeAction on buttons in Windows system tray
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: InvokeAction on buttons in Windows system tray
Hello John,
Unfortunately, it’s not possible to invoke a right mouse click on a Win32 element. You’ll need to use a right mouse click instead.
Regards,
Robert
Unfortunately, it’s not possible to invoke a right mouse click on a Win32 element. You’ll need to use a right mouse click instead.
Regards,
Robert
Re: InvokeAction on buttons in Windows system tray
Thanks Robert.
Is this on the backlog for a future enhancement (assuming the "not possible" means using the current Ranorex API)?
Thanks,
John H.
Is this on the backlog for a future enhancement (assuming the "not possible" means using the current Ranorex API)?
Thanks,
John H.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: InvokeAction on buttons in Windows system tray
Hello John,
Currently, there are no plans to implement such a feature.
In order to raise and discuss a feature request may I ask you to send it to [email protected]? We want to handle feature requests via email in order to avoid misunderstandings.
Thank you in advance.
Regards,
Robert
Currently, there are no plans to implement such a feature.
In order to raise and discuss a feature request may I ask you to send it to [email protected]? We want to handle feature requests via email in order to avoid misunderstandings.
Thank you in advance.
Regards,
Robert