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. |
Frame.LoadState |
waitUntil
When to consider operation succeeded, defaults to
load . |
Constructor and Description |
---|
NavigateOptions() |
Modifier and Type | Method and Description |
---|---|
Page.NavigateOptions |
withReferer(String referer) |
Page.NavigateOptions |
withTimeout(double timeout) |
Page.NavigateOptions |
withWaitUntil(Frame.LoadState waitUntil) |
public String referer
method: Page.setExtraHTTPHeaders
].public Double timeout
0
to disable timeout. The default value can be
changed by using the [method: BrowserContext.setDefaultNavigationTimeout
],
[method: BrowserContext.setDefaultTimeout
], [method: Page.setDefaultNavigationTimeout
] or
[method: Page.setDefaultTimeout
] methods.public Frame.LoadState 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.public Page.NavigateOptions withReferer(String referer)
public Page.NavigateOptions withTimeout(double timeout)
public Page.NavigateOptions withWaitUntil(Frame.LoadState waitUntil)
Copyright © 2021. All rights reserved.