code: def webdriver_assert(self, assertion, failure_message='Failed Assertion'):
          
          try:
              assert assertion() is True
          except AssertionError:
              raise WebDriverAssertionException.WebDriverAssertionException(self.driver_wrapper, failure_message)
  
          return True
docs: Assert the assertion, but throw a WebDriverAssertionException if assertion fails