elem_text {selenider}R 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()


[Package selenider version 0.4.0 Index]