Package com.microsoft.playwright
Class Frame.PressOptions
- java.lang.Object
-
- com.microsoft.playwright.Frame.PressOptions
-
- Enclosing interface:
- Frame
public static class Frame.PressOptions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.DoubledelayTime to wait betweenkeydownandkeyupin milliseconds.java.lang.BooleannoWaitAfterActions that initiate navigations are waiting for these navigations to happen and for pages to start loading.java.lang.BooleanstrictWhen true, the call requires selector to resolve to a single element.java.lang.DoubletimeoutMaximum time in milliseconds.
-
Constructor Summary
Constructors Constructor Description PressOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Frame.PressOptionssetDelay(double delay)Time to wait betweenkeydownandkeyupin milliseconds.Frame.PressOptionssetNoWaitAfter(boolean noWaitAfter)Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading.Frame.PressOptionssetStrict(boolean strict)When true, the call requires selector to resolve to a single element.Frame.PressOptionssetTimeout(double timeout)Maximum time in milliseconds.
-
-
-
Field Detail
-
delay
public java.lang.Double delay
Time to wait betweenkeydownandkeyupin milliseconds. Defaults to 0.
-
noWaitAfter
public java.lang.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 java.lang.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 java.lang.Double timeout
Maximum time in milliseconds. Defaults to30000(30 seconds). Pass0to 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 betweenkeydownandkeyupin 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 to30000(30 seconds). Pass0to disable timeout. The default value can be changed by using theBrowserContext.setDefaultTimeout()orPage.setDefaultTimeout()methods.
-
-