Uses of Class
com.microsoft.playwright.ElementHandle.ScreenshotOptions
Packages that use ElementHandle.ScreenshotOptions
-
Uses of ElementHandle.ScreenshotOptions in com.microsoft.playwright
Methods in com.microsoft.playwright that return ElementHandle.ScreenshotOptionsModifier and TypeMethodDescriptionElementHandle.ScreenshotOptions.setAnimations(ScreenshotAnimations animations) When set to"disabled", stops CSS animations, CSS transitions and Web Animations.ElementHandle.ScreenshotOptions.setCaret(ScreenshotCaret caret) When set to"hide", screenshot will hide text caret.Specify locators that should be masked when the screenshot is taken.ElementHandle.ScreenshotOptions.setMaskColor(String maskColor) Specify the color of the overlay box for masked elements, in CSS color format.ElementHandle.ScreenshotOptions.setOmitBackground(boolean omitBackground) Hides default white background and allows capturing screenshots with transparency.The file path to save the image to.ElementHandle.ScreenshotOptions.setQuality(int quality) The quality of the image, between 0-100.ElementHandle.ScreenshotOptions.setScale(ScreenshotScale scale) When set to"css", screenshot will have a single pixel per each css pixel on the page.ElementHandle.ScreenshotOptions.setTimeout(double timeout) Maximum time in milliseconds.ElementHandle.ScreenshotOptions.setType(ScreenshotType type) Specify screenshot type, defaults topng.Methods in com.microsoft.playwright with parameters of type ElementHandle.ScreenshotOptionsModifier and TypeMethodDescriptionbyte[]ElementHandle.screenshot(ElementHandle.ScreenshotOptions options) This method captures a screenshot of the page, clipped to the size and position of this particular element. -
Uses of ElementHandle.ScreenshotOptions in com.microsoft.playwright.impl
Methods in com.microsoft.playwright.impl with parameters of type ElementHandle.ScreenshotOptionsModifier and TypeMethodDescriptionbyte[]ElementHandleImpl.screenshot(ElementHandle.ScreenshotOptions options) private byte[]ElementHandleImpl.screenshotImpl(ElementHandle.ScreenshotOptions options)