Package 

Class PageExtensionsKt

    • Method Summary

      Modifier and Type Method Description
      final Unit navigateAndWaitLoading(PageDomain $self, String url) Navigates the current page according to the provided url, and suspends until the corresponding frameStoppedLoading event is received.
      final Unit navigateAndWaitLoading(PageDomain $self, NavigateRequest navigateRequest) Navigates the current page according to the provided navigateRequest, and suspends until the corresponding frameStoppedLoading event is received.
      final Unit captureScreenshotToFile(PageDomain $self, Path outputImagePath, CaptureScreenshotRequest 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 navigateAndWaitLoading(PageDomain $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(PageDomain $self, NavigateRequest navigateRequest)

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