Modifier and Type | Field and Description |
---|---|
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 |
---|
ReloadOptions() |
Modifier and Type | Method and Description |
---|---|
Page.ReloadOptions |
setTimeout(double timeout) |
Page.ReloadOptions |
setWaitUntil(WaitUntilState waitUntil) |
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.public Page.ReloadOptions setTimeout(double timeout)
public Page.ReloadOptions setWaitUntil(WaitUntilState waitUntil)
Copyright © 2021. All rights reserved.