Frame#

Added in version 2.26.

class Frame(**properties: Any)#

Superclasses: Object

A web page frame.

Each WebKitWebPage has at least one main frame, and can have any number of subframes.

Methods#

class Frame
get_id() int#

Gets the process-unique identifier of this Frame. No other frame in the same web process will have the same ID; however, frames in other web processes may.

Added in version 2.26.

get_js_context() Context#

Get the JavaScript execution context of frame. Use this function to bridge between the WebKit and JavaScriptCore APIs.

Added in version 2.22.

get_js_context_for_script_world(world: ScriptWorld) Context#

Get the JavaScript execution context of frame for the given ScriptWorld.

Added in version 2.22.

Parameters:

world – a ScriptWorld

get_uri() str#

Gets the current active URI of frame.

Added in version 2.2.

is_main_frame() bool#

Gets whether frame is the main frame of a WebPage

Added in version 2.2.