code: def _get_domain_id(self, domain_text_element):  # pylint: disable=no-self-use
          
          try:
              # Hierarchy: TR > TD > SPAN > Domain Text
              tr_anchor = domain_text_element.parent.parent.parent
              td_anchor = tr_anchor.find('td', {'class': 'td_2'})
              link = td_anchor.find('a')['href']
              domain_id = link.rsplit('/', 1)[-1]
              return domain_id
          except Exception as error:
              errmsg = ('Cannot get the domain id even though the domain seems '
                        'to exist (%s).', error)
              LOGGER.warning(errmsg)
              raise AssertionError(errmsg)
docs: Return the easyname id of the domain.