elem_name {selenider}R Documentation

Get the tag name of an element

Description

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


[Package selenider version 0.4.0 Index]