elem_text: Get the text inside an element

View source: R/properties.R

elem_textR Documentation

Get the text inside an element

Description

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()


selenider documentation built on April 3, 2025, 5:51 p.m.