Modifier and Type | Field and Description |
---|---|
Double |
timeout
Maximum operation time in milliseconds, defaults to 30 seconds, pass
0 to disable timeout. |
Object |
url
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
|
WaitUntilState |
waitUntil
When to consider operation succeeded, defaults to
load . |
Constructor and Description |
---|
WaitForNavigationOptions() |
Modifier and Type | Method and Description |
---|---|
Frame.WaitForNavigationOptions |
setTimeout(double timeout)
Maximum operation time in milliseconds, defaults to 30 seconds, pass
0 to disable timeout. |
Frame.WaitForNavigationOptions |
setUrl(Pattern url)
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
|
Frame.WaitForNavigationOptions |
setUrl(Predicate<String> url)
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
|
Frame.WaitForNavigationOptions |
setUrl(String url)
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
|
Frame.WaitForNavigationOptions |
setWaitUntil(WaitUntilState waitUntil)
When to consider operation succeeded, defaults to
load . |
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 Object url
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 Frame.WaitForNavigationOptions 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 Frame.WaitForNavigationOptions setUrl(String url)
public Frame.WaitForNavigationOptions setUrl(Pattern url)
public Frame.WaitForNavigationOptions setUrl(Predicate<String> url)
public Frame.WaitForNavigationOptions 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.