code: def no_selenium_errors(func):
      
      def _inner(*args, **kwargs):  # pylint: disable=missing-docstring
          try:
              return_val = func(*args, **kwargs)
          except WebDriverException:
              LOGGER.warning(u'Exception ignored during retry loop:', exc_info=True)
              return False
          else:
              return return_val
  
      return _inner
docs: Decorator to create an `EmptyPromise` check function that is satisfied
      only when `func` executes without a Selenium error.
  
      This protects against many common test failures due to timing issues.
      For example, accessing an element after it has been modified by JavaScript
      ordinarily results in a `StaleElementException`.  Methods decorated
      with `no_selenium_errors` will simply retry if that happens, which makes tests
      more robust.
  
      Args:
          func (callable): The function to execute, with retries if an error occurs.
  
      Returns:
          Decorated function