Class Page.NavigateOptions

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

public static class Page.NavigateOptions extends Object
  • Field Details

    • referer

      public String referer
      Referer header value. If provided it will take preference over the referer header value set by Page.setExtraHTTPHeaders().
    • timeout

      public Double timeout
      Maximum operation time in milliseconds, defaults to 30 seconds, pass 0 to disable timeout. The default value can be changed by using the BrowserContext.setDefaultNavigationTimeout(), BrowserContext.setDefaultTimeout(), Page.setDefaultNavigationTimeout() or Page.setDefaultTimeout() methods.
    • waitUntil

      public WaitUntilState waitUntil
      When to consider operation succeeded, defaults to load. Events can be either:
      • "domcontentloaded" - consider operation to be finished when the DOMContentLoaded event is fired.
      • "load" - consider operation to be finished when the load event is fired.
      • "networkidle" - **DISCOURAGED** consider operation to be finished when there are no network connections for at least 500 ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
      • "commit" - consider operation to be finished when network response is received and the document started loading.
  • Constructor Details

    • NavigateOptions

      public NavigateOptions()
  • Method Details