code: def _find_element(driver, by):
      
      try:
          return driver.find_element(*by)
      except NoSuchElementException as e:
          raise e
      except WebDriverException as e:
          raise e
docs: Looks up an element. Logs and re-raises ``WebDriverException``
      if thrown.