|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- Type for the screenshot output.public interface OutputType<T>
Defines the output type for a screenshot. See org.openqa.selenium.Screenshot for usage and examples.
TakesScreenshot
Field Summary | |
---|---|
static OutputType<java.lang.String> |
BASE64
Obtain the screenshot as base64 data. |
static OutputType<byte[]> |
BYTES
Obtain the screenshot as raw bytes. |
static OutputType<java.io.File> |
FILE
Obtain the screenshot into a temporary file that will be deleted once the JVM exits. |
Method Summary | |
---|---|
T |
convertFromBase64Png(java.lang.String base64Png)
Convert the given base64 png to a requested format. |
T |
convertFromPngBytes(byte[] png)
Convert the given png to a requested format. |
Field Detail |
---|
static final OutputType<java.lang.String> BASE64
static final OutputType<byte[]> BYTES
static final OutputType<java.io.File> FILE
Method Detail |
---|
T convertFromBase64Png(java.lang.String base64Png)
base64Png
- base64 encoded png.
T convertFromPngBytes(byte[] png)
png
- an array of bytes forming a png file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |