Skip to content

common_browser.page

Scoped public page methods; runtime mechanisms stay in BaseBrowser.

Classes

Page

Bases: PageActions, PageReading

A page reference with full typed action, reading and artifact signatures.

__init__

def __init__(browser: BaseBrowser, reference: PageRef) -> None

Fields and properties declared here; inherited members belong to the bases above.

reference

Read-only property.

reference: PageRef

aclose

async def aclose() -> None

evaluate

async def evaluate(expression: str, arg: Any = None, *, decoder: Callable[[Any], Any] | None = None, options: OperationConfig | None = None) -> BrowserResult[Any]

Evaluate once, optionally decode JSON synchronously; observed refs expire.

native

def native() -> AbstractAsyncContextManager[Any]

Exclusive advanced SDK access; not a read-only or security boundary.

screenshot

async def screenshot(*, target: Target | ElementRef | None = None, to: Path | str | None = None, full_page: bool = False, format: Literal['png', 'jpeg'] = 'png', options: OperationConfig | None = None) -> BrowserResult[ArtifactData]

Capture a page or exact targeted element as a bounded artifact.

Types and values

T

T = TypeVar('T')