Menu
This topic provides detailed information on how to steer Menu controls with Tosca Cloud, including context menus.
Single-line view
Tosca Cloud automatically creates single-line menus when it scans.
You can steer menus by specifying the path to the according menu entry. You have to use the string -> to represent path nodes.
Action mode |
Value |
Description |
---|---|---|
Input |
<path> |
This selects the entry by using the specified path. If the entry includes a radio button, this is also selected. If the entry includes a checkbox, the state of the checkbox toggles between disabled and enabled. |
Define mouse movement for user simulation
If you would like to define in which direction the mouse pointer should move when placed on an entry in multiline view, follow the steps below:
-
Select the MenuItem and switch to the Properties tab.
-
Define the steering param UserSimulation with the value True.
-
Create the steering param MouseMove and use one of the following values:
Value |
Description |
---|---|
VerticalFirst |
The mouse pointer moves first vertically and then horizontally. This is the default setting. |
HorizontalFirst |
The mouse pointer moves first horizontally and then vertically. |
Context menu
Tosca Cloud steers context menus as menus.
Context menus can disappear when the application focus changes. When this happens, Tosca Cloud can't detect the control when you scan the application. In this case, use one of the following modules to steer context menus:
-
TBox Context Menu for Windows applications
-
SAP ContextMenu for SAP applications
If your application contains a custom context menu which doesn't disappear when the focus changes, use Tosca Cloud to scan it and the respective module to steer it.