if control exists

Description

Begin a block of action lines which are executed only if a specified control is found to exist.

Arguments

window
TA name of the window.
control
TA name of the control.

Valid contexts

This action may be used within the following project items: test modules and user-defined actions.

Notes

  • If the specified control is found, the succeeding block of action lines up until the first occurrence of an else, else if, or end if, is executed. Otherwise, that block is skipped.
  • The if control exists action, in effect, combines the does control exist and if built-in actions.

Applicable Built-In Settings

The following settings are applicable to this action: case sensitive, remove double quotes from cells, standard ASCII only, page wait, object wait probe, window wait, load invisible controls.

Applicable Controls

This action is applicable to the following controls: all controls.

Example

Action Lines

Result

Example

Action Lines

Result