Modifier and Type | Field and Description |
---|---|
MouseButton |
button
Defaults to
left . |
Double |
delay
Time to wait between
mousedown and mouseup in milliseconds. |
Boolean |
force
Whether to bypass the actionability checks.
|
List<KeyboardModifier> |
modifiers
Modifier keys to press.
|
Boolean |
noWaitAfter
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading.
|
Position |
position
A point to use relative to the top-left corner of element padding box.
|
Boolean |
strict
When true, the call requires selector to resolve to a single element.
|
Double |
timeout
Maximum time in milliseconds, defaults to 30 seconds, pass
0 to disable timeout. |
Boolean |
trial
When set, this method only performs the actionability
checks and skips the action.
|
Constructor and Description |
---|
DblclickOptions() |
Modifier and Type | Method and Description |
---|---|
Page.DblclickOptions |
setButton(MouseButton button)
Defaults to
left . |
Page.DblclickOptions |
setDelay(double delay)
Time to wait between
mousedown and mouseup in milliseconds. |
Page.DblclickOptions |
setForce(boolean force)
Whether to bypass the actionability checks.
|
Page.DblclickOptions |
setModifiers(List<KeyboardModifier> modifiers)
Modifier keys to press.
|
Page.DblclickOptions |
setNoWaitAfter(boolean noWaitAfter)
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading.
|
Page.DblclickOptions |
setPosition(double x,
double y)
A point to use relative to the top-left corner of element padding box.
|
Page.DblclickOptions |
setPosition(Position position)
A point to use relative to the top-left corner of element padding box.
|
Page.DblclickOptions |
setStrict(boolean strict)
When true, the call requires selector to resolve to a single element.
|
Page.DblclickOptions |
setTimeout(double timeout)
Maximum time in milliseconds, defaults to 30 seconds, pass
0 to disable timeout. |
Page.DblclickOptions |
setTrial(boolean trial)
When set, this method only performs the actionability
checks and skips the action.
|
public MouseButton button
left
.public Double delay
mousedown
and mouseup
in milliseconds. Defaults to 0.public Boolean force
false
.public List<KeyboardModifier> modifiers
public Boolean noWaitAfter
false
.public Position position
public Boolean strict
public Double timeout
0
to disable timeout. The default value can be changed by
using the BrowserContext.setDefaultTimeout()
or Page.setDefaultTimeout()
methods.public Boolean trial
false
. Useful to wait until the element is ready for the action without
performing it.public Page.DblclickOptions setButton(MouseButton button)
left
.public Page.DblclickOptions setDelay(double delay)
mousedown
and mouseup
in milliseconds. Defaults to 0.public Page.DblclickOptions setForce(boolean force)
false
.public Page.DblclickOptions setModifiers(List<KeyboardModifier> modifiers)
public Page.DblclickOptions setNoWaitAfter(boolean noWaitAfter)
false
.public Page.DblclickOptions setPosition(double x, double y)
public Page.DblclickOptions setPosition(Position position)
public Page.DblclickOptions setStrict(boolean strict)
public Page.DblclickOptions setTimeout(double timeout)
0
to disable timeout. The default value can be changed by
using the BrowserContext.setDefaultTimeout()
or Page.setDefaultTimeout()
methods.public Page.DblclickOptions setTrial(boolean trial)
false
. Useful to wait until the element is ready for the action without
performing it.Copyright © 2022. All rights reserved.