def _getwtext(element):
    """Return the text of HTML tag.

    Parameters
    ----------
    element : selenium.webdriver.remote.webelement.WebElement
              The HTML tag to extract the text from.

    Returns
    -------
    str
        The text inside of the HTML tag.
    """
    return element.get_attribute('text') or element.get_attribute('innerText'
        ) or element.get_attribute('textContent')
