A Keypress Action can be added to your test to simulate using a keyboard shortcut to interact with your site. This could be a single key such as Page Up, or a combination such as Ctrl + Shift + W.
Create a Keypress Action in Architect
- Launch Architect and begin recording your test.
- Click the Add icon to open the Actions panel.
- Click Keypress.
- By default, the Execute keys option is enabled. Deselect if you don't wish to execute the keys at this point in your test.
- Press the necessary key(s) to include them in the test. Click Add.
- Open the Keypress Action to the key(s) selected.
Add a Keypress Action to an Existing Test
- Open the Test Detail Page.
- Click the Add icon where you wish to insert the new Action. Select Key.
- Select the Key(s) in the dialog box.
- The drop-down menu includes each alpha-numeric key, escape key, and arrow keys.
- If adding a multiple-key combination, select the necessary additional keys with the checkboxes. Note: "Meta" refers to the Windows key in Windows or the Command key in iOS.
- Click Insert.
- The new Keypress Action will be visible in the Test Details.
- Open the Action Settings to view the selected keys.