Package com.microsoft.playwright
Class Page.SetContentOptions
- java.lang.Object
-
- com.microsoft.playwright.Page.SetContentOptions
-
-
Field Summary
Fields Modifier and Type Field Description DoubletimeoutMaximum operation time in milliseconds, defaults to 30 seconds, pass0to disable timeout.WaitUntilStatewaitUntilWhen 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.SetContentOptionssetTimeout(double timeout)Maximum operation time in milliseconds, defaults to 30 seconds, pass0to disable timeout.Page.SetContentOptionssetWaitUntil(WaitUntilState waitUntil)When to consider operation succeeded, defaults toload.
-
-
-
Field Detail
-
timeout
public Double timeout
Maximum operation time in milliseconds, defaults to 30 seconds, pass0to disable timeout. The default value can be changed by using theBrowserContext.setDefaultNavigationTimeout(),BrowserContext.setDefaultTimeout(),Page.setDefaultNavigationTimeout()orPage.setDefaultTimeout()methods.
-
waitUntil
public WaitUntilState waitUntil
When to consider operation succeeded, defaults toload. Events can be either:-
"domcontentloaded"- consider operation to be finished when theDOMContentLoadedevent is fired. -
"load"- consider operation to be finished when theloadevent is fired. -
"networkidle"- **DISCOURAGED** consider operation to be finished when there are no network connections for at least500ms. Don't use this method for testing, rely on web assertions to assess readiness instead. -
"commit"- consider operation to be finished when network response is received and the document started loading.
-
-
-
Method Detail
-
setTimeout
public Page.SetContentOptions setTimeout(double timeout)
Maximum operation time in milliseconds, defaults to 30 seconds, pass0to disable timeout. The default value can be changed by using theBrowserContext.setDefaultNavigationTimeout(),BrowserContext.setDefaultTimeout(),Page.setDefaultNavigationTimeout()orPage.setDefaultTimeout()methods.
-
setWaitUntil
public Page.SetContentOptions setWaitUntil(WaitUntilState waitUntil)
When to consider operation succeeded, defaults toload. Events can be either:-
"domcontentloaded"- consider operation to be finished when theDOMContentLoadedevent is fired. -
"load"- consider operation to be finished when theloadevent is fired. -
"networkidle"- **DISCOURAGED** consider operation to be finished when there are no network connections for at least500ms. Don't use this method for testing, rely on web assertions to assess readiness instead. -
"commit"- consider operation to be finished when network response is received and the document started loading.
-
-
-