if window exists
Begin a block of action lines which are executed only if a specified window is found to exist.
Name | Description | Type | Modifier |
---|---|---|---|
window | TA name of the window. | Interface Entity | 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: window.
start application
 
username password
login alex ta
 
window
if window exists welcome
 
window control
click welcome view orders
 
else
 
exit test module
 
end if
- If the specified window 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 window exists action, in effect, combines the does window exist and if built-in actions.
- This built-in action can typically be used in recovery actions to detect unwanted open windows.