Package com.microsoft.playwright
Class Page.ClickOptions
- java.lang.Object
-
- com.microsoft.playwright.Page.ClickOptions
-
-
Field Summary
Fields Modifier and Type Field Description Mouse.Button
button
Defaults toleft
.Integer
clickCount
defaults to 1.Integer
delay
Time to wait betweenmousedown
andmouseup
in milliseconds.Boolean
force
Whether to bypass the actionability checks.Set<Keyboard.Modifier>
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.Integer
timeout
Maximum time in milliseconds, defaults to 30 seconds, pass0
to disable timeout.
-
Constructor Summary
Constructors Constructor Description ClickOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page.ClickOptions
withButton(Mouse.Button button)
Page.ClickOptions
withClickCount(Integer clickCount)
Page.ClickOptions
withDelay(Integer delay)
Page.ClickOptions
withForce(Boolean force)
Page.ClickOptions
withModifiers(Keyboard.Modifier... modifiers)
Page.ClickOptions
withNoWaitAfter(Boolean noWaitAfter)
Page.ClickOptions
withPosition(int x, int y)
Page.ClickOptions
withPosition(Position position)
Page.ClickOptions
withTimeout(Integer timeout)
-
-
-
Field Detail
-
button
public Mouse.Button button
Defaults toleft
.
-
clickCount
public Integer clickCount
defaults to 1. See UIEvent.detail.
-
delay
public Integer delay
Time to wait betweenmousedown
andmouseup
in milliseconds. Defaults to 0.
-
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.
-
modifiers
public Set<Keyboard.Modifier> 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.
-
force
public Boolean force
Whether to bypass the actionability checks. Defaults tofalse
.
-
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
.
-
timeout
public Integer timeout
Maximum time in milliseconds, defaults to 30 seconds, pass0
to disable timeout. The default value can be changed by using the browserContext.setDefaultTimeout(timeout) or page.setDefaultTimeout(timeout) methods.
-
-
Method Detail
-
withButton
public Page.ClickOptions withButton(Mouse.Button button)
-
withClickCount
public Page.ClickOptions withClickCount(Integer clickCount)
-
withDelay
public Page.ClickOptions withDelay(Integer delay)
-
withPosition
public Page.ClickOptions withPosition(Position position)
-
withPosition
public Page.ClickOptions withPosition(int x, int y)
-
withModifiers
public Page.ClickOptions withModifiers(Keyboard.Modifier... modifiers)
-
withForce
public Page.ClickOptions withForce(Boolean force)
-
withNoWaitAfter
public Page.ClickOptions withNoWaitAfter(Boolean noWaitAfter)
-
withTimeout
public Page.ClickOptions withTimeout(Integer timeout)
-
-