| Package | Description |
|---|---|
| com.microsoft.playwright |
| Modifier and Type | Method and Description |
|---|---|
Request |
Request.redirectedFrom()
Request that was redirected by the server to this one, if any.
|
Request |
Request.redirectedTo()
New request issued by the browser if the server responded with redirect.
|
Request |
Route.request()
A request to be routed.
|
Request |
Response.request()
Returns the matching
Request object. |
Request |
Page.waitForRequest(Pattern urlOrPredicate,
Page.WaitForRequestOptions options,
Runnable callback)
Waits for the matching request and returns it.
|
default Request |
Page.waitForRequest(Pattern urlOrPredicate,
Runnable callback)
Waits for the matching request and returns it.
|
Request |
Page.waitForRequest(Predicate<Request> urlOrPredicate,
Page.WaitForRequestOptions options,
Runnable callback)
Waits for the matching request and returns it.
|
default Request |
Page.waitForRequest(Predicate<Request> urlOrPredicate,
Runnable callback)
Waits for the matching request and returns it.
|
Request |
Page.waitForRequest(String urlOrPredicate,
Page.WaitForRequestOptions options,
Runnable callback)
Waits for the matching request and returns it.
|
default Request |
Page.waitForRequest(String urlOrPredicate,
Runnable callback)
Waits for the matching request and returns it.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Page.offRequest(Consumer<Request> handler)
Removes handler that was previously added with
onRequest(handler). |
void |
Page.offRequestFailed(Consumer<Request> handler)
Removes handler that was previously added with
onRequestFailed(handler). |
void |
Page.offRequestFinished(Consumer<Request> handler)
Removes handler that was previously added with
onRequestFinished(handler). |
void |
Page.onRequest(Consumer<Request> handler)
Emitted when a page issues a request.
|
void |
Page.onRequestFailed(Consumer<Request> handler)
Emitted when a request fails, for example by timing out.
|
void |
Page.onRequestFinished(Consumer<Request> handler)
Emitted when a request finishes successfully after downloading the response body.
|
Request |
Page.waitForRequest(Predicate<Request> urlOrPredicate,
Page.WaitForRequestOptions options,
Runnable callback)
Waits for the matching request and returns it.
|
default Request |
Page.waitForRequest(Predicate<Request> urlOrPredicate,
Runnable callback)
Waits for the matching request and returns it.
|
Copyright © 2021. All rights reserved.