Class WebSocket.WaitForFrameSentOptions

java.lang.Object
com.microsoft.playwright.WebSocket.WaitForFrameSentOptions
Enclosing interface:
WebSocket

public static class WebSocket.WaitForFrameSentOptions extends Object
  • Field Details

    • predicate

      public Predicate<WebSocketFrame> predicate
      Receives the WebSocketFrame object and resolves to truthy value when the waiting should resolve.
    • timeout

      public Double timeout
      Maximum time to wait for in milliseconds. Defaults to 30000 (30 seconds). Pass 0 to disable timeout. The default value can be changed by using the BrowserContext.setDefaultTimeout().
  • Constructor Details

    • WaitForFrameSentOptions

      public WaitForFrameSentOptions()
  • Method Details