Package com.version1.webdriver.utils
Class ClickUtils
java.lang.Object
com.version1.webdriver.utils.TolerantInteraction
com.version1.webdriver.utils.ClickUtils
Only for us in the situations outlined for the provided methods.
There's nothing wrong with WebDrivers normal click method, if you don't need this, steer well clear.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidtolerantClick(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.By locator) static voidtolerantClick(org.openqa.selenium.WebElement webElement) static voidtolerantClick(org.openqa.selenium.WebElement webElement, int timeout) Methods inherited from class com.version1.webdriver.utils.TolerantInteraction
tolerantInteraction, tolerantInteraction, tolerantInteraction, tolerantInteraction, tolerantInteraction, tolerantInteractionToClear, tolerantInteractionToGetAttribute, tolerantInteractionToGetText
-
Constructor Details
-
ClickUtils
public ClickUtils()
-
-
Method Details
-
tolerantClick
public static void tolerantClick(org.openqa.selenium.WebElement webElement, int timeout) throws Throwable - Parameters:
webElement- active WebElements, already locatedtimeout- time in seconds to keep trying- Throws:
Throwable- any unhandled or un-tolerated exception
-
tolerantClick
- Throws:
Throwable
-
tolerantClick
public static void tolerantClick(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.By locator) throws Throwable - Throws:
Throwable
-