For AI agents: a documentation index is available at /llms.txt
Skip to main content

Async ElementHandle

A matched element's properties plus selector-scoped actions.

child_element_count

Type: int | None

class_name

Type: str | None

click

click(**options: Unpack[ClickOptions]) -> ClickResponse

hover

hover() -> HoverResponse

id

Type: str | None

inner_html

Type: str | None

inner_text

Type: str | None

local_name

Type: str | None

outer_html

Type: str | None

query_selector

query_selector(selector: str) -> ElementHandle | None

query_selector_all

query_selector_all(selector: str) -> list[ElementHandle]

screenshot

screenshot(*, path: str | None = None) -> bytes

select_option

select_option(value: str | Sequence[str]) -> SelectResponse

selector

Type: str

text_content

text_content() -> str

type

type(text: str, **options: Unpack[TypeOptions]) -> TypeResponse