has_name {selenider}R Documentation

Does an element have a tag name?

Description

Check that an element has a specified tag name

Usage

has_name(x, name)

Arguments

x

A selenider_element object.

name

A string.

Value

A boolean value.

See Also

Other conditions: has_attr(), has_css_property(), has_length(), has_text(), is_enabled(), is_present(), is_visible()

Examples


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

has_name(s("#mydiv"), "p")

has_name(s("#mydiv"), "div")


[Package selenider version 0.4.0 Index]