Package com.microsoft.playwright
Class Page.GoForwardOptions
- java.lang.Object
-
- com.microsoft.playwright.Page.GoForwardOptions
-
-
Field Summary
Fields Modifier and Type Field Description Double
timeout
Maximum operation time in milliseconds, defaults to 30 seconds, pass0
to disable timeout.WaitUntilState
waitUntil
When to consider operation succeeded, defaults toload
.
-
Constructor Summary
Constructors Constructor Description GoForwardOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page.GoForwardOptions
setTimeout(double timeout)
Maximum operation time in milliseconds, defaults to 30 seconds, pass0
to disable timeout.Page.GoForwardOptions
setWaitUntil(WaitUntilState waitUntil)
When to consider operation succeeded, defaults toload
.
-
-
-
Field Detail
-
timeout
public Double timeout
Maximum operation time in milliseconds, defaults to 30 seconds, pass0
to 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 theDOMContentLoaded
event is fired. -
"load"
- consider operation to be finished when theload
event is fired. -
"networkidle"
- **DISCOURAGED** consider operation to be finished when there are no network connections for at least500
ms. 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.GoForwardOptions setTimeout(double timeout)
Maximum operation time in milliseconds, defaults to 30 seconds, pass0
to disable timeout. The default value can be changed by using theBrowserContext.setDefaultNavigationTimeout()
,BrowserContext.setDefaultTimeout()
,Page.setDefaultNavigationTimeout()
orPage.setDefaultTimeout()
methods.
-
setWaitUntil
public Page.GoForwardOptions setWaitUntil(WaitUntilState 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"
- **DISCOURAGED** consider operation to be finished when there are no network connections for at least500
ms. 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.
-
-
-