code: def web_element(self):
          
          try:
              self._find_web_element()
          except NoSuchElementException as exception:
              parent_msg = " and parent locator '{}'".format(self.parent) if self.parent else ''
              msg = "Page element of type '%s' with locator %s%s not found"
              self.logger.error(msg, type(self).__name__, self.locator, parent_msg)
              exception.msg += "\n  {}".format(msg % (type(self).__name__, self.locator, parent_msg))
              raise exception
          return self._web_element
docs: Find WebElement using element locator
  
          :returns: web element object
          :rtype: selenium.webdriver.remote.webelement.WebElement or appium.webdriver.webelement.WebElement