Span script action

Span action

This action applies to Mobile Device scripts only. It is only supported in the Mobile and Chrome agents.

In Mobile Device scripts, the Span action simulates moving thumb and finger away from each other on a mobile device screen to zoom in the display; for example, to make text larger or to display a smaller, more detailed area of a map.

In some websites, the span action is disabled, therefore you cannot record span actions in those sites.

The following settings can be edited for this action.

Span settings

  • Target Window – The window where the span occurred

  • Locators – The element on the page where the span occurred

  • Coordinates – The start and end points of the span, measured from the upper left-hand corner of the element.

    The Start Coordinates record the X and Y coordinates of the two points on the screen where, for example, the thumb and forefinger rest before beginning the span. The End Coordinates record the points where the span ends. In each Coordinates row, the first two fields are the X and Y coordinates, respectively on the left side; the third and fourth fields are the X and Y coordinates, respectively, on the right side.

Change a target window setting

  1. Edit the Target Window name appropriately. The default is gomez_top[0].

Define locators

Add a locator

  1. Click located to the far right in the Locators area. A new row is added.
    Add a locators row

  2. Complete the new locator information.

  3. Repeat to create new additional locators.

Change existing locator settings

  1. Scroll down until you see the Locator to change.

  2. Select the type of Locator information to use — CSS or DOM — from the drop-down menu for the Locator to change.

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

Delete a locator

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

Change coordinates

Span coordinates

  1. In the Start Coordinates row, enter the new pixel values for the left-side X and Y coordinates and right-side X and Y coordinates for the start of the span.

  2. In the End Coordinates row, enter the new pixel values for the left-side X and Y coordinates and right-side X and Y coordinates for the end of the span.