Async::WebDriver SourceAsyncWebDriverScopeFrames

module Frames

Helpers for working with frames.

session.switch_to_frame(frame)
session.switch_to_parent_frame

Definitions

def switch_to_frame(frame)

Switch to the given frame.

Signature

parameter frame Element

The frame to switch to.

raises NoSuchFrameError

If the frame does not exist.

Implementation

def switch_to_frame(frame)
	session.post("frame", {id: frame})
end

def switch_to_parent_frame

Switch back to the parent frame.

You should use this method to switch back to the parent frame after switching to a child frame.

Implementation

def switch_to_parent_frame
	session.post("frame/parent")
end