code: def get_web_element(self, element):
          
          from toolium.pageelements.page_element import PageElement
          if isinstance(element, WebElement):
              web_element = element
          elif isinstance(element, PageElement):
              web_element = element.web_element
          elif isinstance(element, tuple):
              web_element = self.driver_wrapper.driver.find_element(*element)
          else:
              web_element = None
          return web_element
docs: Return the web element from a page element or its locator
  
          :param element: either a WebElement, PageElement or element locator as a tuple (locator_type, locator_value)
          :returns: WebElement object