ComboBox

These are the actions associated with the ComboBox step type.

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

Sets the field value in the ComboBox to the value specified in the Value column.

You can also use this action with the #LIST# reserved word to verify whether items exist in the list.

When used with #LIST#, Set_Value returns an error if the expected value (the bracketed value) is not the same as the actual value.

Example

This example sets the field value to French and verifies that the values English, French, and Finnish exist in the list.

Type

Action

Recognition

Parameters

Value

ComboBox

Set_Value

name=PSOPRDEFN_LANGUAGE_CD

#LIST#English|[French]|Finnish

Description

Checks whether a specified value exists in a combo box. Enter the value to be verified in the Value field. The full text entry or the metadata translation (XLAT) value can be specified for the value; PTF will consider either as a match.

Parameters

Field or Control

Definition

expected=value

Specify expected=true or expected=false. Logs a Pass or Fail based on whether the ret parameter matches the expected parameter.

ret=&variable;

ret=true – the value exists

ret=false – the value does not exist

Example

This example checks if the PA_CALCULATION_TYPE combo box contains Automatic, and logs a Fail if it does not exist.

Type

Action

Recognition

Parameters

Value

ComboBox

ValueExists

name=PA_CALCULATION_TYPE

expected=true;ret=&CalcType

Automatic

Description

Compares the value in the browser to the expected value and adds a Pass or Fail log entry for the validation. Use a vertical pipe (|) to separate values to be verified. Use square brackets ([]) to specify which value is expected to be selected.

Example

This example verifies that the field value is set to Two and verifies that the values One and Three exist:

Type

Action

Recognition

Parameters

Value

ComboBox

Verify

name=DUMMY_FIELD

One|[Two]|Three