if window exists

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

TA name of the window.

Interface EntityNone
None
This action may be used within the following project items: test modules and user-defined actions.
The following settings are applicable to this action: remove double quotes from cells, case sensitive, standard ASCII only, window wait probe.
This action is applicable to the following controls: window.
                                
                                    start application		
	&nbsp	
	username	password
login	alex	ta
	&nbsp	
	window	
if window exists	welcome	
	&nbsp	
	window	control
click	welcome	view orders
	&nbsp	
else		
	&nbsp	
exit test module		
	&nbsp	
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.

Copyright © 2024 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