Uses of Interface
com.microsoft.playwright.Request
Packages that use Request
-
Uses of Request in com.microsoft.playwright
Fields in com.microsoft.playwright with type parameters of type RequestModifier and TypeFieldDescriptionPage.WaitForRequestFinishedOptions.predicateReceives theRequestobject and resolves to truthy value when the waiting should resolve.Methods in com.microsoft.playwright that return RequestModifier and TypeMethodDescriptionRequest.redirectedFrom()Request that was redirected by the server to this one, if any.Request.redirectedTo()New request issued by the browser if the server responded with redirect.Response.request()Returns the matchingRequestobject.Route.request()A request to be routed.Page.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.Page.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.Page.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.Page.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 RequestModifier and TypeMethodDescriptiondefault APIResponseSends HTTP(S) request and returns its response.APIRequestContext.fetch(Request urlOrRequest, RequestOptions params) Sends HTTP(S) request and returns its response.Method parameters in com.microsoft.playwright with type arguments of type RequestModifier and TypeMethodDescriptionvoidBrowserContext.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).voidEmitted when a request is issued from any pages created through this context.voidEmitted 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.WaitForRequestFinishedOptions.setPredicate(Predicate<Request> predicate) Receives theRequestobject and resolves to truthy value when the waiting should resolve.Page.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. -
Uses of Request in com.microsoft.playwright.impl
Classes in com.microsoft.playwright.impl that implement RequestMethods in com.microsoft.playwright.impl that return RequestModifier and TypeMethodDescription(package private) RequestRequestImpl.finalRequest()RequestImpl.redirectedFrom()RequestImpl.redirectedTo()private RequestPageImpl.waitForRequest(UrlMatcher urlMatcher, Predicate<Request> predicate, Page.WaitForRequestOptions options, Runnable code) PageImpl.waitForRequest(String urlGlob, Page.WaitForRequestOptions options, Runnable code) PageImpl.waitForRequest(Predicate<Request> predicate, Page.WaitForRequestOptions options, Runnable code) PageImpl.waitForRequest(Pattern urlPattern, Page.WaitForRequestOptions options, Runnable code) PageImpl.waitForRequestFinished(Page.WaitForRequestFinishedOptions options, Runnable code) private RequestPageImpl.waitForRequestFinishedImpl(Page.WaitForRequestFinishedOptions options, Runnable code) private RequestPageImpl.waitForRequestImpl(Predicate<Request> predicate, Page.WaitForRequestOptions options, Runnable code) Methods in com.microsoft.playwright.impl with parameters of type RequestModifier and TypeMethodDescriptionAPIRequestContextImpl.fetch(Request request, RequestOptions optionsArg) Method parameters in com.microsoft.playwright.impl with type arguments of type RequestModifier and TypeMethodDescriptionvoidBrowserContextImpl.offRequest(Consumer<Request> handler) voidPageImpl.offRequest(Consumer<Request> handler) voidBrowserContextImpl.offRequestFailed(Consumer<Request> handler) voidPageImpl.offRequestFailed(Consumer<Request> handler) voidBrowserContextImpl.offRequestFinished(Consumer<Request> handler) voidPageImpl.offRequestFinished(Consumer<Request> handler) voidvoidvoidBrowserContextImpl.onRequestFailed(Consumer<Request> handler) voidPageImpl.onRequestFailed(Consumer<Request> handler) voidBrowserContextImpl.onRequestFinished(Consumer<Request> handler) voidPageImpl.onRequestFinished(Consumer<Request> handler) private RequestPageImpl.waitForRequest(UrlMatcher urlMatcher, Predicate<Request> predicate, Page.WaitForRequestOptions options, Runnable code) PageImpl.waitForRequest(Predicate<Request> predicate, Page.WaitForRequestOptions options, Runnable code) private RequestPageImpl.waitForRequestImpl(Predicate<Request> predicate, Page.WaitForRequestOptions options, Runnable code)