if control exists
Begin a block of action lines which are executed only if a specified control is found to exist.
Name | Description | Type | Modifier |
---|---|---|---|
window | TA name of the window. | Interface Entity | None |
control | TA name of the control. | Interface Element | None |
None
This action may be used within the following project items: test modules and user-defined actions.
This action is applicable to the following controls: all controls.
start application username password login alex ta window control click welcome view cars window control if control exists view cars home window control click view cars home else window menu item select menu item view cars main menu File->Close end if window check window exists welcome

- 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.