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