Uses of Interface
com.microsoft.playwright.Request
-
Packages that use Request Package Description com.microsoft.playwright -
-
Uses of Request in com.microsoft.playwright
Fields in com.microsoft.playwright with type parameters of type Request Modifier and Type Field Description Predicate<Request>Page.WaitForRequestFinishedOptions. predicateReceives theRequestobject and resolves to truthy value when the waiting should resolve.Methods in com.microsoft.playwright that return Request Modifier and Type Method Description RequestRequest. redirectedFrom()Request that was redirected by the server to this one, if any.RequestRequest. redirectedTo()New request issued by the browser if the server responded with redirect.RequestResponse. request()Returns the matchingRequestobject.RequestRoute. request()A request to be routed.RequestPage. waitForRequest(String urlOrPredicate, Page.WaitForRequestOptions options, Runnable callback)Waits for the matching request and returns it.default RequestPage. waitForRequest(String urlOrPredicate, Runnable callback)Waits for the matching request and returns it.RequestPage. waitForRequest(Predicate<Request> urlOrPredicate, Page.WaitForRequestOptions options, Runnable callback)Waits for the matching request and returns it.default RequestPage. waitForRequest(Predicate<Request> urlOrPredicate, Runnable callback)Waits for the matching request and returns it.RequestPage. waitForRequest(Pattern urlOrPredicate, Page.WaitForRequestOptions options, Runnable callback)Waits for the matching request and returns it.default RequestPage. waitForRequest(Pattern urlOrPredicate, Runnable callback)Waits for the matching request and returns it.RequestPage. waitForRequestFinished(Page.WaitForRequestFinishedOptions options, Runnable callback)Performs action and waits for aRequestto finish loading.default RequestPage. waitForRequestFinished(Runnable callback)Performs action and waits for aRequestto finish loading.Methods in com.microsoft.playwright with parameters of type Request Modifier and Type Method Description default APIResponseAPIRequestContext. fetch(Request urlOrRequest)Sends HTTP(S) request and returns its response.APIResponseAPIRequestContext. fetch(Request urlOrRequest, RequestOptions params)Sends HTTP(S) request and returns its response.Method parameters in com.microsoft.playwright with type arguments of type Request Modifier and Type Method Description voidBrowserContext. offRequest(Consumer<Request> handler)Removes handler that was previously added withonRequest(handler).voidPage. offRequest(Consumer<Request> handler)Removes handler that was previously added withonRequest(handler).voidBrowserContext. offRequestFailed(Consumer<Request> handler)Removes handler that was previously added withonRequestFailed(handler).voidPage. offRequestFailed(Consumer<Request> handler)Removes handler that was previously added withonRequestFailed(handler).voidBrowserContext. offRequestFinished(Consumer<Request> handler)Removes handler that was previously added withonRequestFinished(handler).voidPage. offRequestFinished(Consumer<Request> handler)Removes handler that was previously added withonRequestFinished(handler).voidBrowserContext. onRequest(Consumer<Request> handler)Emitted when a request is issued from any pages created through this context.voidPage. onRequest(Consumer<Request> handler)Emitted when a page issues a request.voidBrowserContext. onRequestFailed(Consumer<Request> handler)Emitted when a request fails, for example by timing out.voidPage. onRequestFailed(Consumer<Request> handler)Emitted when a request fails, for example by timing out.voidBrowserContext. onRequestFinished(Consumer<Request> handler)Emitted when a request finishes successfully after downloading the response body.voidPage. onRequestFinished(Consumer<Request> handler)Emitted when a request finishes successfully after downloading the response body.Page.WaitForRequestFinishedOptionsPage.WaitForRequestFinishedOptions. setPredicate(Predicate<Request> predicate)Receives theRequestobject and resolves to truthy value when the waiting should resolve.RequestPage. waitForRequest(Predicate<Request> urlOrPredicate, Page.WaitForRequestOptions options, Runnable callback)Waits for the matching request and returns it.default RequestPage. waitForRequest(Predicate<Request> urlOrPredicate, Runnable callback)Waits for the matching request and returns it.
-