Skip to contents

Get the inner text of a selenider_element object.

Usage

elem_text(x, timeout = NULL)

Arguments

x

A selenider_element object.

timeout

The time to wait for x to exist.

Value

A string.

See also

Other properties: elem_attr(), elem_css_property(), elem_name(), elem_size()

Examples

html <- "
<p>Example text</p>
"

session <- minimal_selenider_session(html)

s("p") |>
  elem_text()