Modifier and Type | Field and Description |
---|---|
String |
referer
Referer header value.
|
Double |
timeout
Maximum operation time in milliseconds, defaults to 30 seconds, pass
0 to disable timeout. |
WaitUntilState |
waitUntil
When to consider operation succeeded, defaults to
load . |
Constructor and Description |
---|
NavigateOptions() |
Modifier and Type | Method and Description |
---|---|
Page.NavigateOptions |
setReferer(String referer)
Referer header value.
|
Page.NavigateOptions |
setTimeout(double timeout)
Maximum operation time in milliseconds, defaults to 30 seconds, pass
0 to disable timeout. |
Page.NavigateOptions |
setWaitUntil(WaitUntilState waitUntil)
When to consider operation succeeded, defaults to
load . |
public String referer
Page.setExtraHTTPHeaders()
.public Double timeout
0
to disable timeout. The default value can be
changed by using the BrowserContext.setDefaultNavigationTimeout()
,
BrowserContext.setDefaultTimeout()
, Page.setDefaultNavigationTimeout()
or Page.setDefaultTimeout()
methods.public WaitUntilState waitUntil
load
. Events can be either:
"domcontentloaded"
- consider operation to be finished when the DOMContentLoaded
event is fired."load"
- consider operation to be finished when the load
event is fired."networkidle"
- consider operation to be finished when there are no network connections for at least 500
ms."commit"
- consider operation to be finished when network response is received and the document started loading.public Page.NavigateOptions setReferer(String referer)
Page.setExtraHTTPHeaders()
.public Page.NavigateOptions setTimeout(double timeout)
0
to disable timeout. The default value can be
changed by using the BrowserContext.setDefaultNavigationTimeout()
,
BrowserContext.setDefaultTimeout()
, Page.setDefaultNavigationTimeout()
or Page.setDefaultTimeout()
methods.public Page.NavigateOptions setWaitUntil(WaitUntilState waitUntil)
load
. Events can be either:
"domcontentloaded"
- consider operation to be finished when the DOMContentLoaded
event is fired."load"
- consider operation to be finished when the load
event is fired."networkidle"
- consider operation to be finished when there are no network connections for at least 500
ms."commit"
- consider operation to be finished when network response is received and the document started loading.Copyright © 2022. All rights reserved.