-
public final class PageExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final UnitnavigateAndWaitLoading(PageDomain $self, String url)Navigates the current page according to the provided url, and suspends until the corresponding frameStoppedLoadingevent is received.final UnitnavigateAndWaitLoading(PageDomain $self, NavigateRequest navigateRequest)Navigates the current page according to the provided navigateRequest, and suspends until the corresponding frameStoppedLoadingevent is received.final UnitcaptureScreenshotToFile(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. -
-
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
frameStoppedLoadingevent 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
frameStoppedLoadingevent is received.
-
captureScreenshotToFile
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.
-
-
-
-