Package com.microsoft.playwright
Class Page.SetContentOptions
- java.lang.Object
-
- com.microsoft.playwright.Page.SetContentOptions
-
-
Field Summary
Fields Modifier and Type Field Description Integer
timeout
Maximum operation time in milliseconds, defaults to 30 seconds, pass0
to disable timeout.Frame.LoadState
waitUntil
When to consider operation succeeded, defaults toload
.
-
Constructor Summary
Constructors Constructor Description SetContentOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page.SetContentOptions
withTimeout(Integer timeout)
Page.SetContentOptions
withWaitUntil(Frame.LoadState waitUntil)
-
-
-
Field Detail
-
timeout
public Integer timeout
Maximum operation time in milliseconds, defaults to 30 seconds, pass0
to disable timeout. The default value can be changed by using the browserContext.setDefaultNavigationTimeout(timeout), browserContext.setDefaultTimeout(timeout), page.setDefaultNavigationTimeout(timeout) or page.setDefaultTimeout(timeout) methods.
-
waitUntil
public Frame.LoadState waitUntil
When to consider operation succeeded, defaults toload
. Events can be either: -'domcontentloaded'
- consider operation to be finished when theDOMContentLoaded
event is fired. -'load'
- consider operation to be finished when theload
event is fired. -'networkidle'
- consider operation to be finished when there are no network connections for at least500
ms.
-
-
Method Detail
-
withTimeout
public Page.SetContentOptions withTimeout(Integer timeout)
-
withWaitUntil
public Page.SetContentOptions withWaitUntil(Frame.LoadState waitUntil)
-
-