get selected items

Retrieve the text values of the selected items in a multiple selection control.
NameDescriptionTypeModifier
window

TA name of the window.

Interface EntityNone
control

TA name of the multiple selection control.

Interface ElementNone
item<index>

Variables to hold the returned values. Arguments item2 through itemN are optional.

StringNone
Text values of the selected items in a multiple selection control.
This action may be used within the following project items: test modules and user-defined actions.
This action is applicable to the following controls: list box, list view, combo box.
Example - Case 1: The list view control

Action lines
        
        	window	control	item1	item2
get selected items	search	songs list	s1	s2
&nbsp				
	value	expected		
check value	#s1	Heal the World|Michael Jackson|5678|5:19|mp3|192		
check value	#s2	Unbreakable|Michael Jackson|5642|4:12|mp3|160		
        
    
Result
Example - Case 2: The list box control

Action lines
        
        	window	control	item1
get selected items	date and location	pickup state	s1
&nbsp			
	value	expected	
check value	#s1	Florida	
        
    
Result
  • item arguments:
    • For the list view control, the content returned to each returned item variable is the concatenation of all cell values of the selected row, separated by vertical bars ( | ).
    • If the variables in arguments item1, item2, etc. Have not been declared, the action creates them as globals.
  • This action supports the <ignore> modifier. If the string <ignore> is present as the value of any of the arguments, or any argument contains an expression that evaluates to <ignore>, the action is skipped during execution.

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