Skip to main content

Module frame

Module frame 

Source
Expand description

FrameJs: JS wrapper around ferridriver::Frame.

Mirrors Playwright’s Frame sync navigation tree API — name(), url(), isMainFrame(), parentFrame(), childFrames(), isDetached() — plus the small set of async accessors needed for writing scripts that deal with iframes (evaluate / title / content, locator).

Action methods (click, fill, hover, etc.) and the full getBy* option surface ship in task 3.9 (Frame action methods).

The underlying ferridriver::Frame is a cheap (Arc<Page>, Arc<str>) handle — cloning it is free. All name/url/parent/children/detached state is read live from the page-owned frame cache (see crate::frame_cache::FrameCache) seeded at Page::init_frame_cache.

Structs§

FrameJs
JS-visible wrapper around ferridriver::Frame. Constructed only by PageJs / other FrameJs instances (mainFrame, frames, frame, parentFrame, childFrames).