ElementHandle.ScreenshotOptions |
ElementHandle.ScreenshotOptions.setAnimations(ScreenshotAnimations animations) |
When set to "disabled", stops CSS animations, CSS transitions and Web Animations.
|
ElementHandle.ScreenshotOptions |
ElementHandle.ScreenshotOptions.setCaret(ScreenshotCaret caret) |
When set to "hide", screenshot will hide text caret.
|
ElementHandle.ScreenshotOptions |
ElementHandle.ScreenshotOptions.setMask(List<Locator> mask) |
Specify locators that should be masked when the screenshot is taken.
|
ElementHandle.ScreenshotOptions |
ElementHandle.ScreenshotOptions.setMaskColor(String maskColor) |
|
ElementHandle.ScreenshotOptions |
ElementHandle.ScreenshotOptions.setOmitBackground(boolean omitBackground) |
Hides default white background and allows capturing screenshots with transparency.
|
ElementHandle.ScreenshotOptions |
ElementHandle.ScreenshotOptions.setPath(Path path) |
The file path to save the image to.
|
ElementHandle.ScreenshotOptions |
ElementHandle.ScreenshotOptions.setQuality(int quality) |
The quality of the image, between 0-100.
|
ElementHandle.ScreenshotOptions |
ElementHandle.ScreenshotOptions.setScale(ScreenshotScale scale) |
When set to "css", screenshot will have a single pixel per each css pixel on the page.
|
ElementHandle.ScreenshotOptions |
ElementHandle.ScreenshotOptions.setStyle(String style) |
Text of the stylesheet to apply while making the screenshot.
|
ElementHandle.ScreenshotOptions |
ElementHandle.ScreenshotOptions.setTimeout(double timeout) |
Maximum time in milliseconds.
|
ElementHandle.ScreenshotOptions |
ElementHandle.ScreenshotOptions.setType(ScreenshotType type) |
Specify screenshot type, defaults to png.
|