T
- Type for the screenshot output.public interface OutputType<T>
TakesScreenshot
Modifier and Type | Field and Description |
---|---|
static OutputType<String> |
BASE64
Obtain the screenshot as base64 data.
|
static OutputType<byte[]> |
BYTES
Obtain the screenshot as raw bytes.
|
static OutputType<File> |
FILE
Obtain the screenshot into a temporary file that will be deleted once the JVM exits.
|
Modifier and Type | Method and Description |
---|---|
T |
convertFromBase64Png(String base64Png)
Convert the given base64 png to a requested format.
|
T |
convertFromPngBytes(byte[] png)
Convert the given png to a requested format.
|
static final OutputType<String> BASE64
static final OutputType<byte[]> BYTES
static final OutputType<File> FILE
T convertFromBase64Png(String base64Png)
base64Png
- base64 encoded png.T convertFromPngBytes(byte[] png)
png
- an array of bytes forming a png file.Copyright © 2013. All Rights Reserved.