public class Screenshot extends RunOnFailureKeywordsAdapter
| Modifier and Type | Field and Description |
|---|---|
protected BrowserManagement |
browserManagement
Instantiated BrowserManagement keyword bean
|
protected Logging |
logging
Instantiated Logging keyword bean
|
protected int |
screenshotIndex |
| Constructor and Description |
|---|
Screenshot() |
| Modifier and Type | Method and Description |
|---|---|
void |
capturePageScreenshot() |
void |
capturePageScreenshot(String filename)
Take a screenshot of the current page and embed it into the log.
|
protected String |
normalizeFilename(String filename) |
protected void |
writeScreenshot(File path,
byte[] png) |
runOnFailureByAspectJprotected BrowserManagement browserManagement
protected Logging logging
protected int screenshotIndex
public void capturePageScreenshot()
public void capturePageScreenshot(String filename)
filename - Default=NONE. Name of the file to write.protected void writeScreenshot(File path, byte[] png)
Copyright © 2014. All rights reserved.