switch frame by path

Description

Switch the focus to the target frame defined by frame path. (Learn more)

Important: This action is dedicated to Generic WebDriver.

When to 'switch frame'

In a web page with multiple frames, you have to switch the focus to the frame containing the element before locating the element.

Argument

  • frame path: the path from current frame to the destination frame.

Valid contexts

This action may be used within the following project items: test modules and user-defined actions.

Note

  • switch frame by path cannot move the focus back to its parent frame or default page. To move the focus to the parent frame or default page. You ought to adopt the switch frame by destination action.

Example

The current frame is 'frame 1'. You want to switch to 'frame 3'.

Action Lines