if control not exists

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

TA name of the window.

Interface EntityNone
control

TA name of the control.

Interface ElementNone
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
 
usernamepassword
loginalexta
 
windowcontrol
clickwelcomeview cars
 
windowcontrol
if control not existsview carsavailable car
 
exit test module
 
else
 
windowmenuitem
select menu itemview cars[ta class=menu bar, role=menu bar]File->View Orders
 
end if
 
window
check window existsview orders
  • 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, with the if condition properly constructed.

Copyright © 2025 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400