Package com.codeborne.selenide
Class ClickOptions
java.lang.Object
com.codeborne.selenide.ClickOptions
- All Implemented Interfaces:
HasTimeout
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ClickOptions
(ClickMethod clickMethod, int offsetX, int offsetY, Duration timeout) -
Method Summary
Modifier and TypeMethodDescriptionoffset
(int offsetX, int offsetY) int
offsetX()
offsetX
(int offsetX) int
offsetY()
offsetY
(int offsetY) timeout()
Custom timeout for this click.toString()
static ClickOptions
static ClickOptions
static ClickOptions
withOffset
(int offsetX, int offsetY) static ClickOptions
withTimeout
(Duration timeout)
-
Constructor Details
-
ClickOptions
protected ClickOptions(ClickMethod clickMethod, int offsetX, int offsetY, @Nullable Duration timeout)
-
-
Method Details
-
usingDefaultMethod
-
usingJavaScript
-
withOffset
-
withTimeout
-
offsetX
@CheckReturnValue public int offsetX() -
offsetY
@CheckReturnValue public int offsetY() -
clickMethod
-
timeout
- Specified by:
timeout
in interfaceHasTimeout
-
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.
- Since:
- 6.6.0
-
toString
-