Span

These are the actions associated with the Span step type.

Description

Performs a mouse click on the specified object.

See Click.

Description

Checks whether the object exists on the page.

See Exists.

Description

Gets the property value of an HTML object based on the prop=value parameter and assigns it to the variable in ret=&variable.

See Get_Property.

Description

Gets the style value of an HTML object based on the prop=value parameter and assigns it to the variable in ret=&variable.

See Get_Style

Description

Gets the label of the specified HTML object.

See GetLabel.

Description

Fires the mouseover event to show a popup page. Enter the page name in the Recognition field.

See Using Pop-up Pages

Description

Fires the mouseout event to close a popup page. Enter the page name in the Recognition field.

Example

The following examples show how MouseOver and MouseOverClose can be used with popup pages.

To record a verification of a field value in a mouseover popup window:

  1. From the recorder tool bar, click and drag the Target icon for the Verify action and hover over the field with a popup window.

  2. Wait until the popup window appears.

  3. Move the cursor to the field you want to check, then release the mouse button.

  4. PTF Recorder generates the following steps:

Type

Action

Recognition

Parameters

Value

Browser

Start

Span

MouseOver

id=QE_EMPLOYEE_EMPLID

en

Span

Verify

Comment=QE_EMPL2_DEPTID

22000

Span

MouseOverClose

id=QE_EMPLOYEE_EMPLID

To record an action for an object inside a mouseover popup window:

  1. Click and drag the Target icon for the Verify action and hover over the field with a popup window.

  2. Wait until the popup window appears, then release the mouse button.

  3. Perform the action you want to record, such as clicking a URL link.

  4. PTF Recorder generates the following steps:

Type

Action

Recognition

Parameters

Value

Browser

WaitForNew

Span

MouseOver

id=QE_EMPLOYEE_EMPLID

Link

Click

Name=QE_EMPL_PHOTO2_URL

Span

MouseOverClose

id=QE_EMPLOYEE_EMPLID

Description

Compares the value in the browser to the expected value, and adds a pass or fail log entry for the validation.

See Verify.

Example

This step validates a Span object that contains informational text:

Type

Action

Recognition

Parameters

Value

Span

Verify

ClassName=PSTEXT

Select an option