Package 

Class PageExtensionsKt

    • Method Summary

      Modifier and Type Method Description
      final Unit ,String)>navigateAndWaitLoading(<ERROR CLASS> $self, String url) Navigates the current page according to the provided url, and suspends until the corresponding frameStoppedLoading event is received.
      final Unit ,)>navigateAndWaitLoading(<ERROR CLASS> $self, <ERROR CLASS> navigateRequest) Navigates the current page according to the provided navigateRequest, and suspends until the corresponding frameStoppedLoading event is received.
      final Unit ,Path,)>captureScreenshotToFile(<ERROR CLASS> $self, Path outputImagePath, <ERROR CLASS> request) Captures a screenshot of the current page based on the given request, and store the resulting image into a new file at the given outputImagePath.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • navigateAndWaitLoading

        @Deprecated(message = "This method is subject to race conditions. Prefer calling ChromePageSession.navigateAndAwaitPageLoad") final Unit ,String)>navigateAndWaitLoading(<ERROR CLASS> $self, String url)

        Navigates the current page according to the provided url, and suspends until the corresponding frameStoppedLoading event is received.

      • navigateAndWaitLoading

        @Deprecated(message = "This method is subject to race conditions. Prefer calling ChromePageSession.navigateAndAwaitPageLoad") final Unit ,)>navigateAndWaitLoading(<ERROR CLASS> $self, <ERROR CLASS> navigateRequest)

        Navigates the current page according to the provided navigateRequest, and suspends until the corresponding frameStoppedLoading event is received.

      • captureScreenshotToFile

         final Unit ,Path,)>captureScreenshotToFile(<ERROR CLASS> $self, Path outputImagePath, <ERROR CLASS> request)

        Captures a screenshot of the current page based on the given request, and store the resulting image into a new file at the given outputImagePath.