Package com.microsoft.playwright
Class Frame.PressOptions
- java.lang.Object
-
- com.microsoft.playwright.Frame.PressOptions
-
-
Field Summary
Fields Modifier and Type Field Description Double
delay
Time to wait betweenkeydown
andkeyup
in milliseconds.Boolean
noWaitAfter
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading.Boolean
strict
When true, the call requires selector to resolve to a single element.Double
timeout
Maximum time in milliseconds, defaults to 30 seconds, pass0
to disable timeout.
-
Constructor Summary
Constructors Constructor Description PressOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Frame.PressOptions
setDelay(double delay)
Time to wait betweenkeydown
andkeyup
in milliseconds.Frame.PressOptions
setNoWaitAfter(boolean noWaitAfter)
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading.Frame.PressOptions
setStrict(boolean strict)
When true, the call requires selector to resolve to a single element.Frame.PressOptions
setTimeout(double timeout)
Maximum time in milliseconds, defaults to 30 seconds, pass0
to disable timeout.
-
-
-
Field Detail
-
delay
public Double delay
Time to wait betweenkeydown
andkeyup
in milliseconds. Defaults to 0.
-
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
.
-
strict
public Boolean strict
When true, the call requires selector to resolve to a single element. If given selector resolves to more than one element, the call throws an exception.
-
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.
-
-
Method Detail
-
setDelay
public Frame.PressOptions setDelay(double delay)
Time to wait betweenkeydown
andkeyup
in milliseconds. Defaults to 0.
-
setNoWaitAfter
public Frame.PressOptions 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
.
-
setStrict
public Frame.PressOptions setStrict(boolean strict)
When true, the call requires selector to resolve to a single element. If given selector resolves to more than one element, the call throws an exception.
-
setTimeout
public Frame.PressOptions 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.
-
-