Click script action

Click action

In Desktop Browser scripts, the Click action defines where on a page to record a mouse click. It is inserted when you click an element, such as clicking a link to navigate or selecting a field.

In Mobile Device scripts, when you set Touch to OFF, clicking in the Mobile Recorder screen is recorded as a Click instead of as a Tap.

The Click action is defined by the following settings:

  • Target Window – The window where the click occurs.

  • Locators – The elements to be clicked.

  • Double click – The UI element requires a double click to operate it.

  • Pixel – The X and Y coordinates of the click on the element, measured from the upper left-hand corner of the element.

Click settings

Change a target window setting

  1. Change the value in the Target Window field.

Add a locator

  1. Click on the right side of the Locators area. A new row is added.

  2. Select CSS or DOM from the drop-down list.

  3. Enter the new Locator information.

Change existing locator settings

  1. Scroll down to the Locator to change.

  2. If necessary, change the selection — CSS or DOM — from the drop-down list.

  3. Enter the new Locator information in the text field.

Delete a locator

  1. Click to the right of the Locator to delete.

You cannot undo a deletion. You are not prompted to confirm the deletion.

Specify a double-click action

By default, a Click action is a single click. Select the Double Click option to specify that the action represents a double click.

  1. Select Double Click located at the end of the Locators area.

Change the location

The location of the click is defined by the number of pixels from the upper left corner of the element clicked.

  1. In the first text field of the Pixel area, enter the new pixel value for the X coordinate.

  2. In the second text field, enter the new pixel value for the Y coordinate.