Skip to main content

getTagName

Retrieves the html tag name of an element.

getTagName(elemId)

Parameters#

  • elemId: The target element

Returns#

  • html tag of the element

Example#

tag = getTagName(findElement('sectionOne', by.testId))print(tag) # prints, section