Package com.microsoft.playwright
Class Frame.SelectOptionOptions
- java.lang.Object
-
- com.microsoft.playwright.Frame.SelectOptionOptions
-
- Enclosing interface:
- Frame
public static class Frame.SelectOptionOptions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.BooleanforceWhether to bypass the actionability checks.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 SelectOptionOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Frame.SelectOptionOptionssetForce(boolean force)Whether to bypass the actionability checks.Frame.SelectOptionOptionssetNoWaitAfter(boolean noWaitAfter)Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading.Frame.SelectOptionOptionssetStrict(boolean strict)When true, the call requires selector to resolve to a single element.Frame.SelectOptionOptionssetTimeout(double timeout)Maximum time in milliseconds.
-
-
-
Field Detail
-
force
public java.lang.Boolean force
Whether to bypass the actionability checks. Defaults tofalse.
-
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
-
setForce
public Frame.SelectOptionOptions setForce(boolean force)
Whether to bypass the actionability checks. Defaults tofalse.
-
setNoWaitAfter
public Frame.SelectOptionOptions 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.SelectOptionOptions 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.SelectOptionOptions 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.
-
-