switch frame by destination

Switch the focus to the parent frame of the current one or the main frame (default content). (Learn more)

Important: 
This action is dedicated to Generic WebDriver.

NameDescriptionTypeModifier
destination

The frame to which you want to shift the focus.

Allowable values:

  • parent: the parent of the current frame.
  • main: the main frame / Default content. (See )

Value Setparent, main
None
This action may be used within the following project items: test modules and user-defined actions.
                                
                                    	frame path		
switch frame by path	#cf_switch frame 5		
	&nbsp		
	window	control	value
set	frame multi level	frm5_radio female	on
	&nbsp		
	window	control	value
check	frame multi level	frm5_radio female	on
	&nbsp		
	destination		
switch frame by destination	parent		
	&nbsp		
	window	control	value
enter	frame multi level	frm4_input password	123456
	&nbsp		
	window	control	value
check	frame multi level	frm4_input password	123456
	&nbsp		
	destination		
switch frame by destination	main		
                                
                            
  • This action is dedicated to Generic WebDriver.
  • In a web page with multiple frames, you have to switch the focus to the frame containing the element before locating the element.
  • Assuming the current frame is ‘frame 2’:

    • If you switch to the parent frame, the new current frame will be ‘frame 1’.

    • If you switch to the main frame, the new current frame will be ‘main frame’.


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