Skip to contents

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

Examples

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

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

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