Check that an element has a specified tag name
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")