Skip to contents

Get the tag name (e.g. "p" for a <p> tag) of a selenider_element object.

Usage

elem_name(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_size(), elem_text()

Examples

html <- "
<div class='mydiv'></div>
"
session <- minimal_selenider_session(html)

s(".mydiv") |>
  elem_name()