Package | Description |
---|---|
com.microsoft.playwright |
Modifier and Type | Method and Description |
---|---|
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.setTimeout(double timeout)
Maximum time in milliseconds, defaults to 30 seconds, pass
0 to disable timeout. |
ElementHandle.ScreenshotOptions |
ElementHandle.ScreenshotOptions.setType(ScreenshotType type)
Specify screenshot type, defaults to
png . |
Modifier and Type | Method and Description |
---|---|
byte[] |
ElementHandle.screenshot(ElementHandle.ScreenshotOptions options)
Returns the buffer with the captured screenshot.
|
Copyright © 2021. All rights reserved.