Package com.codeborne.selenide
Class ClickOptions
java.lang.Object
com.codeborne.selenide.ClickOptions
- All Implemented Interfaces:
HasTimeout
- Direct Known Subclasses:
AppiumClickOptions
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClickOptions(ClickMethod clickMethod, int offsetX, int offsetY, @Nullable Duration timeout, boolean force, List<org.openqa.selenium.Keys> holdingKeys) -
Method Summary
Modifier and TypeMethodDescriptionforce()List<org.openqa.selenium.Keys>holdingKeys(org.openqa.selenium.Keys holdingKeys, org.openqa.selenium.Keys... otherKeys) booleanisForce()offset(int offsetX, int offsetY) intoffsetX()offsetX(int offsetX) intoffsetY()offsetY(int offsetY) @Nullable Durationtimeout()Custom timeout for this click.toString()static ClickOptionsusing(ClickMethod method) static ClickOptionsstatic ClickOptionsstatic ClickOptionswithOffset(int offsetX, int offsetY) static ClickOptionswithTimeout(Duration timeout)
-
Constructor Details
-
ClickOptions
protected ClickOptions(ClickMethod clickMethod, int offsetX, int offsetY, @Nullable Duration timeout, boolean force, List<org.openqa.selenium.Keys> holdingKeys)
-
-
Method Details
-
using
-
usingDefaultMethod
-
usingJavaScript
-
withOffset
-
withTimeout
-
offsetX
public int offsetX() -
offsetY
public int offsetY() -
clickMethod
-
timeout
- Specified by:
timeoutin interfaceHasTimeout
-
isForce
public boolean isForce() -
holdingKeys
-
offsetX
-
offsetY
-
offset
-
timeout
Custom timeout for this click.
It's only reasonable to set this timeout if it's different from `Configuration.pageLoadTimeout` which is by default 30 seconds. Most probably it's needed to a set a custom timeout when you need to click a link which opens a very-very slow page which loads in more than 30 seconds.
NB! We strongly recommend to optimize such slow pages instead of increasing timeout. These pages make your tests slower.
-
force
-
holdingKeys
public ClickOptions holdingKeys(org.openqa.selenium.Keys holdingKeys, org.openqa.selenium.Keys... otherKeys) -
toString
-