Package com.microsoft.playwright
Class Page.IsEnabledOptions
- java.lang.Object
-
- com.microsoft.playwright.Page.IsEnabledOptions
-
-
Constructor Summary
Constructors Constructor Description IsEnabledOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page.IsEnabledOptionssetStrict(boolean strict)When true, the call requires selector to resolve to a single element.Page.IsEnabledOptionssetTimeout(double timeout)Maximum time in milliseconds.
-
-
-
Field Detail
-
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 to30000(30 seconds). Pass0to disable timeout. The default value can be changed by using theBrowserContext.setDefaultTimeout()orPage.setDefaultTimeout()methods.
-
-
Method Detail
-
setStrict
public Page.IsEnabledOptions 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 Page.IsEnabledOptions 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.
-
-