Adding a Press step
You can add a press action for window controls or supported keys as a step by using the Press step from the UI catalog. For example, you can add a step to minimize a window or press Ctrl + M.
Before you begin
- Ensured that you are assigned a Team Space Owner, Project Owner, or Member with a Tester role to create or edit a test resource.
- Read and understood the information in Edit branch overview and Create or select an Edit branch.
- Ensured that your project contains a Web UI test.
- Opened the test in Test Editor. See Editing a Web UI test.
Procedure
-
Click the
button displayed on the Test
Editor page.
The Edit button appears only when no active edit branch is selected.
Alternatively, right-click the test in the test navigator panel and select Edit.
The Edit branch dialog is displayed.If the Edit branch dialog is not displayed, then go to step 3. - Select an existing edit branch or create a new edit branch.
- Drag and drop the Press element under any test step as required from the UI catalog in the Catalog tab.
-
Click the Press step.
The step details pane is displayed.
-
Perform the following steps in the step details pane:
- Select an option from the Press list.
The Press list displays the Back, Close, Enter, Forward, Keyboard, Maximize, Minimize, Refresh, Reset, Restore, and Tab options. If you selected the keyboard option, then the Modifiers and Key fields are displayed.
- Select one or more modifier keys such as Cmd (only for Mac), Ctrl, Shift, Alt in Modifier.
- Enter a name of the key to be used in combination with the modifier or independently in Key. For example, you can use Ctrl + Home or Home.
- Select the Native System Input checkbox to simulate the input
keys or special key actions at the screen level on the active window.
This option is used to handle non-HTML windows such as file browse dialogs. To interact with file browse dialogs, you must keep your machine unlocked and the browser dialog must be in the foreground.
- Select an option from the Press list.
-
Click the Save icon
to save the modifications.