Package uk.co.evoco.webdriver.utils
Class ClickUtils
java.lang.Object
uk.co.evoco.webdriver.utils.TolerantInteraction
uk.co.evoco.webdriver.utils.ClickUtils
public final class ClickUtils extends TolerantInteraction
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 Constructor Description ClickUtils() -
Method Summary
Modifier and Type Method Description static voidtolerantClick(org.openqa.selenium.WebElement webElement)static voidtolerantClick(org.openqa.selenium.WebElement webElement, int timeout)Methods inherited from class uk.co.evoco.webdriver.utils.TolerantInteraction
tolerantInteraction, tolerantInteraction, tolerantInteraction
-
Constructor Details
-
ClickUtils
public ClickUtils()
-
-
Method Details
-
tolerantClick
public static void tolerantClick(org.openqa.selenium.WebElement webElement, int timeout) throws java.lang.Throwable- Parameters:
webElement- active WebElements, already locatedtimeout- time in seconds to keep trying- Throws:
java.lang.Throwable- any unhandled or un-tolerated exception
-
tolerantClick
public static void tolerantClick(org.openqa.selenium.WebElement webElement) throws java.lang.Throwable- Throws:
java.lang.Throwable
-