public class ScreenShotFileOutput extends Object implements org.openqa.selenium.OutputType<File>
This temp file won't be deleted on exist.
| Modifier and Type | Field and Description |
|---|---|
protected String |
screenshotFilePrefix |
protected String |
targetDir |
| Constructor and Description |
|---|
ScreenShotFileOutput(String screenshotFilePrefix) |
ScreenShotFileOutput(String targetDir,
String screenshotFilePrefix) |
| Modifier and Type | Method and Description |
|---|---|
File |
convertFromBase64Png(String base64Png) |
File |
convertFromPngBytes(byte[] data) |
protected String screenshotFilePrefix
public ScreenShotFileOutput(String targetDir, String screenshotFilePrefix)
targetDir - name of the target dir (can be null), will be ignored if file is created in temp directory.screenshotFilePrefix - prefix of the screen shot file.public ScreenShotFileOutput(String screenshotFilePrefix)
screenshotFilePrefix - prefix of the screen shot file.public File convertFromBase64Png(String base64Png)
convertFromBase64Png in interface org.openqa.selenium.OutputType<File>public File convertFromPngBytes(byte[] data)
convertFromPngBytes in interface org.openqa.selenium.OutputType<File>Copyright © 2015 Nuxeo SA. All rights reserved.