if window not exists
Begin a block of action lines which are executed only if a specified window is found not 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 not exists welcome
 
exit test module
 
else
 
window control
click welcome view orders
 
end if
- If the specified window is not 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 not exists action, in effect, combines the does window exist and if built-in actions, with the if condition properly constructed.
- Typically, this built-in action is used to take an extra action if a window or browser is not yet open.