Package com.microsoft.playwright
Class Page.TypeOptions
- java.lang.Object
-
- com.microsoft.playwright.Page.TypeOptions
-
-
Field Summary
Fields Modifier and Type Field Description Double
delay
Time to wait between key presses in milliseconds.Boolean
noWaitAfter
Deprecated.This option has no effect.Boolean
strict
When true, the call requires selector to resolve to a single element.Double
timeout
Maximum time in milliseconds.
-
Constructor Summary
Constructors Constructor Description TypeOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Page.TypeOptions
setDelay(double delay)
Time to wait between key presses in milliseconds.Page.TypeOptions
setNoWaitAfter(boolean noWaitAfter)
Deprecated.This option has no effect.Page.TypeOptions
setStrict(boolean strict)
When true, the call requires selector to resolve to a single element.Page.TypeOptions
setTimeout(double timeout)
Maximum time in milliseconds.
-
-
-
Field Detail
-
delay
public Double delay
Time to wait between key presses in milliseconds. Defaults to 0.
-
noWaitAfter
public Boolean noWaitAfter
Deprecated.This option has no effect.
-
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). Pass0
to disable timeout. The default value can be changed by using theBrowserContext.setDefaultTimeout()
orPage.setDefaultTimeout()
methods.
-
-
Method Detail
-
setDelay
public Page.TypeOptions setDelay(double delay)
Time to wait between key presses in milliseconds. Defaults to 0.
-
setNoWaitAfter
public Page.TypeOptions setNoWaitAfter(boolean noWaitAfter)
Deprecated.This option has no effect.
-
setStrict
public Page.TypeOptions 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.TypeOptions setTimeout(double timeout)
Maximum time in milliseconds. Defaults to30000
(30 seconds). Pass0
to disable timeout. The default value can be changed by using theBrowserContext.setDefaultTimeout()
orPage.setDefaultTimeout()
methods.
-
-