Package org.htmlunit

Class WebClientUtil

    • Constructor Detail

      • WebClientUtil

        public WebClientUtil()
    • Method Detail

      • waitForJSExec

        public static void waitForJSExec​(org.htmlunit.WebClient webClient)
        Wait for all async JavaScript tasks associated with the supplied WebClient instance to complete.

        Waits for 10 seconds before timing out.

        Parameters:
        webClient - The WebClient instance.
      • waitForJSExec

        public static void waitForJSExec​(org.htmlunit.WebClient webClient,
                                         long timeout)
        Wait for all async JavaScript tasks associated with the supplied WebClient instance to complete.
        Parameters:
        webClient - The WebClient instance.
        timeout - The timeout in milliseconds.