The command that gets the current Element's tag name.
Element.tag_name() -> str
assert py.get(".btn").tag_name() == "button"
# Errors, 'tag_name' is not a property py.get("a").tag_name
None
str - The tag name of the current Element
Last updated 2 years ago