public class PageSourceExtractor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<java.lang.String> |
printedErrors |
| Constructor and Description |
|---|
PageSourceExtractor(Config config,
org.openqa.selenium.WebDriver driver,
java.lang.String fileName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyFile(java.io.InputStream in,
java.io.File targetFile) |
protected void |
ensureFolderExists(java.io.File targetFile) |
protected java.io.File |
extract(boolean retryIfAlert) |
protected void |
printOnce(java.lang.String action,
java.lang.Throwable error) |
protected void |
writeToFile(java.lang.String content,
java.io.File targetFile) |
public PageSourceExtractor(Config config, org.openqa.selenium.WebDriver driver, java.lang.String fileName)
protected java.io.File extract(boolean retryIfAlert)
protected void writeToFile(java.lang.String content,
java.io.File targetFile)
protected void printOnce(java.lang.String action,
java.lang.Throwable error)
protected void copyFile(java.io.InputStream in,
java.io.File targetFile)
throws java.io.IOException
java.io.IOExceptionprotected void ensureFolderExists(java.io.File targetFile)