Class Page.WaitForWorkerOptions

  • Enclosing interface:
    Page

    public static class Page.WaitForWorkerOptions
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.function.Predicate<Worker> predicate
      Receives the Worker object and resolves to truthy value when the waiting should resolve.
      java.lang.Double timeout
      Maximum time to wait for in milliseconds.
    • Field Detail

      • predicate

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

        public java.lang.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 Detail

      • WaitForWorkerOptions

        public WaitForWorkerOptions()
    • Method Detail

      • setPredicate

        public Page.WaitForWorkerOptions setPredicate​(java.util.function.Predicate<Worker> predicate)
        Receives the Worker object and resolves to truthy value when the waiting should resolve.