Div
Use the Div step type to interact with Div objects. These are the actions associated with the Div 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.
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.
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
.
Use the HTML Browser feature of the Message tool to identify the properties and values of an object. When this step type is recorded tagName and id properties are always shown.
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
.
You can use the HTML Browser feature of the Message tool to identify the properties and values of an object.
See Get_Style.
Description
Gets the hexadecimal value of the background color of an object when the mouse cursor moves away from it.
If during playback the same background color value is not found, then the step will fail. You can find the details in the log.
The action is only recorded on grids which has class ps_grid-row psc_rowact and type Div
Example
The following example shows test steps where a mouse out is recorded with background color as transparent. On playback if the background color value is not transparent when the mouse rolls out from the object, the step will fail.
Type |
Action |
Recognition |
Parameters |
Value |
---|---|---|---|---|
Div |
MouseOut |
Id=Book$0_row_0 |
Prop=background-color|bgover_value=transparent |
Description
Gets the hexadecimal value of the background color of an object when the mouse cursor rolls over it.
If during playback the same background color value is not found, then the step will fail. You can find the details in the log.
The action is only recorded on grids which has class ps_grid-row psc_rowact and type Div
Example
The following example shows test steps where a mouse over is recorded with background color as #ded. On playback if the background color value is not #ded when the mouse is on the object, the step will fail.
Type |
Action |
Recognition |
Parameters |
Value |
---|---|---|---|---|
Div |
MouseOver |
Id=Book$0_row_0 |
Prop=background-color|bgover_value=#ded |
Description
Activates the scroll in a Div object to refresh the data with the next set of records. The Recognition field should contain the Div id property.
Typically this step.action is inserted during recording (recommended), by using the recorder toolbar; however, you can also use the Message tool to determine the Div id property when adding Div.Scrollit steps as you edit a test. A Div.ScrollIt step should be added for each browser refresh that is required to access the desired record; multiple Div.ScrollIt steps may be needed.