Package com.microsoft.playwright
Class Locator.DblclickOptions
- java.lang.Object
-
- com.microsoft.playwright.Locator.DblclickOptions
-
-
Field Summary
Fields Modifier and Type Field Description MouseButton
button
Defaults toleft
.Double
delay
Time to wait betweenmousedown
andmouseup
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.Double
timeout
Maximum time in milliseconds, defaults to 30 seconds, pass0
to disable timeout.Boolean
trial
When set, this method only performs the actionability checks and skips the action.
-
Constructor Summary
Constructors Constructor Description DblclickOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Locator.DblclickOptions
setButton(MouseButton button)
Defaults toleft
.Locator.DblclickOptions
setDelay(double delay)
Time to wait betweenmousedown
andmouseup
in milliseconds.Locator.DblclickOptions
setForce(boolean force)
Whether to bypass the actionability checks.Locator.DblclickOptions
setModifiers(List<KeyboardModifier> modifiers)
Modifier keys to press.Locator.DblclickOptions
setNoWaitAfter(boolean noWaitAfter)
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading.Locator.DblclickOptions
setPosition(double x, double y)
A point to use relative to the top-left corner of element padding box.Locator.DblclickOptions
setPosition(Position position)
A point to use relative to the top-left corner of element padding box.Locator.DblclickOptions
setTimeout(double timeout)
Maximum time in milliseconds, defaults to 30 seconds, pass0
to disable timeout.Locator.DblclickOptions
setTrial(boolean trial)
When set, this method only performs the actionability checks and skips the action.
-
-
-
Field Detail
-
button
public MouseButton button
Defaults toleft
.
-
delay
public Double delay
Time to wait betweenmousedown
andmouseup
in milliseconds. Defaults to 0.
-
force
public Boolean force
Whether to bypass the actionability checks. Defaults tofalse
.
-
modifiers
public List<KeyboardModifier> modifiers
Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current modifiers back. If not specified, currently pressed modifiers are used.
-
noWaitAfter
public Boolean noWaitAfter
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to inaccessible pages. Defaults tofalse
.
-
position
public Position position
A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element.
-
timeout
public Double timeout
Maximum time in milliseconds, defaults to 30 seconds, pass0
to disable timeout. The default value can be changed by using theBrowserContext.setDefaultTimeout()
orPage.setDefaultTimeout()
methods.
-
trial
public Boolean trial
When set, this method only performs the actionability checks and skips the action. Defaults tofalse
. Useful to wait until the element is ready for the action without performing it.
-
-
Method Detail
-
setButton
public Locator.DblclickOptions setButton(MouseButton button)
Defaults toleft
.
-
setDelay
public Locator.DblclickOptions setDelay(double delay)
Time to wait betweenmousedown
andmouseup
in milliseconds. Defaults to 0.
-
setForce
public Locator.DblclickOptions setForce(boolean force)
Whether to bypass the actionability checks. Defaults tofalse
.
-
setModifiers
public Locator.DblclickOptions setModifiers(List<KeyboardModifier> modifiers)
Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current modifiers back. If not specified, currently pressed modifiers are used.
-
setNoWaitAfter
public Locator.DblclickOptions setNoWaitAfter(boolean noWaitAfter)
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to inaccessible pages. Defaults tofalse
.
-
setPosition
public Locator.DblclickOptions setPosition(double x, double y)
A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element.
-
setPosition
public Locator.DblclickOptions setPosition(Position position)
A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element.
-
setTimeout
public Locator.DblclickOptions setTimeout(double timeout)
Maximum time in milliseconds, defaults to 30 seconds, pass0
to disable timeout. The default value can be changed by using theBrowserContext.setDefaultTimeout()
orPage.setDefaultTimeout()
methods.
-
setTrial
public Locator.DblclickOptions setTrial(boolean trial)
When set, this method only performs the actionability checks and skips the action. Defaults tofalse
. Useful to wait until the element is ready for the action without performing it.
-
-