Uses of Class
com.microsoft.playwright.Page.ScreenshotOptions
Packages that use Page.ScreenshotOptions
-
Uses of Page.ScreenshotOptions in com.microsoft.playwright
Methods in com.microsoft.playwright that return Page.ScreenshotOptionsModifier and TypeMethodDescriptionPage.ScreenshotOptions.setAnimations(ScreenshotAnimations animations) When set to"disabled", stops CSS animations, CSS transitions and Web Animations.Page.ScreenshotOptions.setCaret(ScreenshotCaret caret) When set to"hide", screenshot will hide text caret.Page.ScreenshotOptions.setClip(double x, double y, double width, double height) An object which specifies clipping of the resulting image.An object which specifies clipping of the resulting image.Page.ScreenshotOptions.setFullPage(boolean fullPage) When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport.Specify locators that should be masked when the screenshot is taken.Page.ScreenshotOptions.setMaskColor(String maskColor) Specify the color of the overlay box for masked elements, in CSS color format.Page.ScreenshotOptions.setOmitBackground(boolean omitBackground) Hides default white background and allows capturing screenshots with transparency.The file path to save the image to.Page.ScreenshotOptions.setQuality(int quality) The quality of the image, between 0-100.Page.ScreenshotOptions.setScale(ScreenshotScale scale) When set to"css", screenshot will have a single pixel per each css pixel on the page.Page.ScreenshotOptions.setTimeout(double timeout) Maximum time in milliseconds.Page.ScreenshotOptions.setType(ScreenshotType type) Specify screenshot type, defaults topng.Methods in com.microsoft.playwright with parameters of type Page.ScreenshotOptionsModifier and TypeMethodDescriptionbyte[]Page.screenshot(Page.ScreenshotOptions options) Returns the buffer with the captured screenshot. -
Uses of Page.ScreenshotOptions in com.microsoft.playwright.impl
Methods in com.microsoft.playwright.impl with parameters of type Page.ScreenshotOptionsModifier and TypeMethodDescriptionbyte[]PageImpl.screenshot(Page.ScreenshotOptions options) private byte[]PageImpl.screenshotImpl(Page.ScreenshotOptions options)