Uses of Interface
com.microsoft.playwright.WebSocket
Packages that use WebSocket
-
Uses of WebSocket in com.microsoft.playwright
Fields in com.microsoft.playwright with type parameters of type WebSocketModifier and TypeFieldDescriptionPage.WaitForWebSocketOptions.predicateReceives theWebSocketobject and resolves to truthy value when the waiting should resolve.Methods in com.microsoft.playwright that return WebSocketModifier and TypeMethodDescriptionPage.waitForWebSocket(Page.WaitForWebSocketOptions options, Runnable callback) Performs action and waits for a newWebSocket.default WebSocketPage.waitForWebSocket(Runnable callback) Performs action and waits for a newWebSocket.Method parameters in com.microsoft.playwright with type arguments of type WebSocketModifier and TypeMethodDescriptionvoidRemoves handler that was previously added withonClose(handler).voidPage.offWebSocket(Consumer<WebSocket> handler) Removes handler that was previously added withonWebSocket(handler).voidFired when the websocket closes.voidPage.onWebSocket(Consumer<WebSocket> handler) Emitted whenWebSocketrequest is sent.Page.WaitForWebSocketOptions.setPredicate(Predicate<WebSocket> predicate) Receives theWebSocketobject and resolves to truthy value when the waiting should resolve. -
Uses of WebSocket in com.microsoft.playwright.impl
Classes in com.microsoft.playwright.impl that implement WebSocketMethods in com.microsoft.playwright.impl that return WebSocketModifier and TypeMethodDescriptionPageImpl.waitForWebSocket(Page.WaitForWebSocketOptions options, Runnable code) private WebSocketPageImpl.waitForWebSocketImpl(Page.WaitForWebSocketOptions options, Runnable code) Method parameters in com.microsoft.playwright.impl with type arguments of type WebSocket