Playwright.ElementHandle (playwright v0.1.16-preview-2) View Source

Defines a handle to a DOM element. Playwright.ElementHandle structs may be returned from Playwright.Page functions such as Playwright.Page.query_selector/2.

Link to this section Summary

Functions

Clicks on the given element.

Returns the value of an elements attribute, or nil.

Searches within an element for a DOM element matching the given selector.

Returns all text from an element.

Link to this section Types

Specs

t() :: %Playwright.ElementHandle{
  connection: term(),
  guid: term(),
  initializer: term(),
  listeners: term(),
  parent: term(),
  preview: term(),
  type: term()
}

Link to this section Functions

Specs

click(t()) :: nil

Clicks on the given element.

Link to this function

get_attribute(subject, attr_name)

View Source

Specs

get_attribute(t(), binary()) :: binary() | nil

Returns the value of an elements attribute, or nil.

Link to this function

query_selector(subject, selector)

View Source

Specs

query_selector(t(), binary()) :: t() | nil

Searches within an element for a DOM element matching the given selector.

Specs

text_content(t()) :: binary() | nil

Returns all text from an element.