Exists

Description

Checks whether the object exists on the page.

The following step types support this action:

Parameters

Parameter Description

ret=&variable;

ret=True – the object exists

ret=False – the object does not exist

expected=value

Specify expected=True or expected=False or or Expected= Either. When Either is selected both possible outcomes , that is, True or False, is accepted. PTF logs both cases as LogInfo instead of LogWarning.

Example

This example shows the use of the Exists action:

This example illustrates the Exists action.

Example of the Exists action