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