Use the items in the <Select Action> list box to insert action steps while recording. These items are grouped into these categories:
• Drag and drop actions.
• Step insert actions.
• Usage monitor actions.
Image: Select Actions list box
You can add an action manually from the select actions drop down.
<Select Action> - Drag and Drop Actions
These recording action tools capture page element recognition data using a method called “drag and drop”, which refers to using the mouse to click an item and drag it then drop it to another location. To use these options while recording:
1. Select a drag and drop option from the <Select Action> list.
This activates the Target icon, making it available to use.
2. Click and drag the Target icon to the desired page element.
Notice that the mouse cursor changes to a bold question mark.
3. Highlight the page element, then release the mouse button to drop the icon over it.
As you hover over a page element, the page element becomes highlighted. The element that you intend to reference must be highlighted when you drop the icon over it. If the field is not highlighted, PTF will not recognize it.
Drag and drop actions are not applicable to all HTML objects.
This list describes the drag and drop action options that are available in the Recorder Toolbar <Select Action> list:
ComboBox.ValueExists Adds a ComboBox.ValueExists step. Drag and drop over a combo box element. You are prompted to select the value, and the variable to store the return value, and to select an expected value. Valid values are True, False, or Ignore.
Div.ScrollIt Adds a Div.ScrollIt step. Drag and drop over a horizontal/
vertical scroll bar element.
Field Exists Adds an Exists step. Drag and drop over a page element. You are prompted to enter a variable name or select an existing variable and to select an expected value. Valid values are True, False, or Ignore.
See Exists.
Get Label Adds a Field.GetLabel step. You are prompted for the return variable that will contain the label.
See GetLabel
Get Property Adds a GetProperty step. Drag and drop over a page element.
You are prompted with a list of properties for the selected page element. Enter a variable name or select an existing variable name for one or more properties. The recorder adds a GetProperty step for each property you identify.
See Get_Property.
Get Style Adds a GetStyle step. Drag and drop over a page element. You are prompted with a list of style definitions for the selected page element. Enter a variable name or select an existing variable name for one or more style definitions. The recorder adds a GetStyle step for each style you identify.
HTMLCell Get Index Returns the index value for an HTML table cell. Drag and drop over the HTML table cell. You are prompted for the return variable that will contain the HTML index.
See CellGetIndex
HTMLCell Get Value Returns the value for an HTML table cell. Drag and drop over the HTML table cell. You are prompted for the return variable that will contain the HTML cell value.
See CellGetValue
Set Scroll Key Adds a Scroll.Key_Set step. Drag and drop over a key field in a scroll. Enter a Scroll ID in the Step Modification area and click the Confirm icon.
See Incorporating Scroll Handling.
Set Scroll Definition Drag and drop the target icon on the component page to define the scroll button or the parent grid. The Step:Scroll Definition dialog box appears where you can select the definition type and other details.
See Scroll.
Show Popup Opens field pop-ups or organization chart menu items.
See MouseOver.
Verify Adds a Verify step. Drag and drop over a page element. The step is automatically populated with the object ID and value of the field.
See Verify.
<Select Action> - Step Insert Actions
These recording action tools insert test steps that provide logic constructs, manage scroll actions, and add variables and logs.
This list describes the step insert action options that are available in the Recorder Toolbar <Select Action>
list:
Add Log Adds a Log step.
You are prompted to select a Log action and enter text for the Message and Details.
Add Variable Adds a Variable.Set_Value step. You are prompted for Variable Name and Value. User-defined variables and PTF test variables appear in the <Select Variable> drop down list.
See Variable, System Variables.
End-If Adds a Conditional.End_If step.
If-Then Adds a Conditional If_Then construct. You are prompted for an expression, such as &Exists=True. The Recorder inserts a Conditional.If_Then step. Record additional steps, then select End-If to add a Conditional.End_If step.
See Conditional.
Scroll Action Adds a Scroll.Action step. You are prompted to enter a Scroll ID, return variable, and action. Click the Confirm icon.
Scroll Reset Select to delete all rows with the specified scroll ID
<Select Action> - Usage Monitor Actions
These recording action tools insert test steps that control usage monitor actions.
This list describes the usage monitor action options that are available in the Recorder Toolbar <Select Action> list:
Start Adds a UsageMonitor.Start step.
Stop Adds a UsageMonitor.Stop step.