Class Page.WaitForWebSocketOptions

java.lang.Object
com.microsoft.playwright.Page.WaitForWebSocketOptions
Enclosing interface:
Page

public static class Page.WaitForWebSocketOptions extends Object
  • Field Details

    • predicate

      public Predicate<WebSocket> predicate
      Receives the WebSocket 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

    • WaitForWebSocketOptions

      public WaitForWebSocketOptions()
  • Method Details