This action applies to Mobile Device scripts only. It is only supported in the Mobile and Chrome agents.
In Mobile Device scripts, the Tap action defines where on a page to record a mouse click that simulates tapping a mobile device screen with a fingertip. It is inserted when you click an element, such as clicking a link to navigate or selecting a field.
When you set Touch to OFF in the Mobile Recorder, clicking in the Mobile Recorder screen is recorded as a Click instead of as a Tap.
Select a Tap action in the timeline to display the settings that can be edited:
Target Window – The window where the click occurs.
Locators – The element(s) to be clicked.
Pixel – The X and Y coordinates of the click on the element, measured from the upper left-hand corner of the element.
Change a target window setting
- Change the value in the Target Window field.
Add a locator
Click the add icon on the right side of the Locators area. A new row is added.
Select CSS or DOM from the drop-down list.
Enter the new Locator information.
Change existing locator settings
Scroll down to the Locator to change.
If necessary, change the selection — CSS or DOM — in the drop-down list.
Enter the new Locator information in the text field.
Delete a locator
- Click to the right of the Locator to delete.
You cannot undo a deletion. You are not prompted to confirm the deletion.
Change the tap location
The location of the Tap is defined by the number of pixels from the upper left corner of the element clicked.
In the first text field of the Pixel area, enter the new pixel value for the X coordinate.
In the second text field, enter the new pixel value for the Y coordinate.