Package de.bmiag.tapir.selenium.aop
Class DefaultWebDriverExceptionOccurrenceBehaviour
- java.lang.Object
-
- de.bmiag.tapir.selenium.aop.DefaultWebDriverExceptionOccurrenceBehaviour
-
- All Implemented Interfaces:
WebDriverExceptionOccurrenceBehaviour
- Direct Known Subclasses:
FirefoxWebDriverExceptionOccurrenceBehaviour
public class DefaultWebDriverExceptionOccurrenceBehaviour extends java.lang.Object implements WebDriverExceptionOccurrenceBehaviour
TheDefaultWebDriverExceptionOccurrenceBehaviour
handles subtypes ofWebDriverException
. For the following instancesshouldRetry(WebDriverException)
returns true:StaleElementReferenceException
NoSuchElementException
ElementClickInterceptedException
- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description DefaultWebDriverExceptionOccurrenceBehaviour()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldRetry(org.openqa.selenium.WebDriverException ex)
Returns if the operation should be retried for givenWebDriverException
.
-
-
-
Method Detail
-
shouldRetry
public boolean shouldRetry(org.openqa.selenium.WebDriverException ex)
Description copied from interface:WebDriverExceptionOccurrenceBehaviour
Returns if the operation should be retried for givenWebDriverException
.- Specified by:
shouldRetry
in interfaceWebDriverExceptionOccurrenceBehaviour
- Parameters:
ex
- The given exception- Returns:
- true, if the operation should be retried.
-
-