Span
These are the actions associated with the Span step type.
Description
Performs a mouse click on the specified object.
See Click.
Performs the action of dragging a PTF object. It is followed by the Drop_Over action where a previously selected object is dragged and released over a newly selected object on the same page.
Note: The action is only supported for PTF playback.
See Drag_From.
Performs the action of dragging and releasing a PTF object over a newly selected object on the same page. It is preceded by the Drag_From action where a previously selected object is dragged from a position.
Note: The action is only supported for PTF playback.
See Drop_Over.
Description
Checks whether the object exists on the page.
See Exists.
Description
Gets the property value
of an HTML object and assign to the prop=value
parameter. Also stores it to the variable in ret=&variable
.
See Get_Property.
Description
Gets the style value of
properties in a class from the HTML stylesheet. The value is assigned
to prop=value
parameter and stores 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.
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:
From the recorder tool bar, click and drag the Target icon for the Verify action and hover over the field with a popup window.
Wait until the popup window appears.
Move the cursor to the field you want to check, then release the mouse button.
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:
Click and drag the Target icon for the Verify action and hover over the field with a popup window.
Wait until the popup window appears, then release the mouse button.
Perform the action you want to record, such as clicking a URL link.
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 |