Class Frame.WaitForNavigationOptions

  • Enclosing interface:
    Frame

    public static class Frame.WaitForNavigationOptions
    extends Object
    • Field Detail

      • url

        public Object url
        A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to the string.
      • 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" - consider operation to be finished when there are no network connections for at least 500 ms.
        • "commit" - consider operation to be finished when network response is received and the document started loading.
    • Constructor Detail

      • WaitForNavigationOptions

        public WaitForNavigationOptions()
    • Method Detail

      • setUrl

        public Frame.WaitForNavigationOptions setUrl​(String url)
        A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to the string.
      • setUrl

        public Frame.WaitForNavigationOptions setUrl​(Pattern url)
        A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to the string.
      • setUrl

        public Frame.WaitForNavigationOptions setUrl​(Predicate<String> url)
        A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to the string.
      • setWaitUntil

        public Frame.WaitForNavigationOptions setWaitUntil​(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" - consider operation to be finished when there are no network connections for at least 500 ms.
        • "commit" - consider operation to be finished when network response is received and the document started loading.