public static class ElementHandle.PressOptions extends Object
Modifier and Type | Field and Description |
---|---|
Double |
delay
Time to wait between
keydown and keyup in milliseconds. |
Boolean |
noWaitAfter
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading.
|
Double |
timeout
Maximum time in milliseconds, defaults to 30 seconds, pass
0 to disable timeout. |
Constructor and Description |
---|
PressOptions() |
Modifier and Type | Method and Description |
---|---|
ElementHandle.PressOptions |
setDelay(double delay)
Time to wait between
keydown and keyup in milliseconds. |
ElementHandle.PressOptions |
setNoWaitAfter(boolean noWaitAfter)
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading.
|
ElementHandle.PressOptions |
setTimeout(double timeout)
Maximum time in milliseconds, defaults to 30 seconds, pass
0 to disable timeout. |
public Double delay
keydown
and keyup
in milliseconds. Defaults to 0.public Boolean noWaitAfter
false
.public Double timeout
0
to disable timeout. The default value can be changed by
using the BrowserContext.setDefaultTimeout()
or Page.setDefaultTimeout()
methods.public ElementHandle.PressOptions setDelay(double delay)
keydown
and keyup
in milliseconds. Defaults to 0.public ElementHandle.PressOptions setNoWaitAfter(boolean noWaitAfter)
false
.public ElementHandle.PressOptions setTimeout(double timeout)
0
to disable timeout. The default value can be changed by
using the BrowserContext.setDefaultTimeout()
or Page.setDefaultTimeout()
methods.Copyright © 2022. All rights reserved.