Package com.codeborne.selenide.impl
Class PageSourceExtractor
- java.lang.Object
-
- com.codeborne.selenide.impl.PageSourceExtractor
-
public class PageSourceExtractor extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>printedErrors
-
Constructor Summary
Constructors Constructor Description PageSourceExtractor(Config config, org.openqa.selenium.WebDriver driver, java.lang.String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcopyFile(java.io.InputStream in, java.io.File targetFile)protected voidensureFolderExists(java.io.File targetFile)protected java.io.Fileextract(boolean retryIfAlert)protected voidprintOnce(java.lang.String action, java.lang.Throwable error)protected voidwriteToFile(java.lang.String content, java.io.File targetFile)
-
-
-
Constructor Detail
-
PageSourceExtractor
public PageSourceExtractor(Config config, org.openqa.selenium.WebDriver driver, java.lang.String fileName)
-
-
Method Detail
-
extract
protected java.io.File extract(boolean retryIfAlert)
-
writeToFile
protected void writeToFile(java.lang.String content, java.io.File targetFile)
-
printOnce
protected void printOnce(java.lang.String action, java.lang.Throwable error)
-
copyFile
protected void copyFile(java.io.InputStream in, java.io.File targetFile) throws java.io.IOException- Throws:
java.io.IOException
-
ensureFolderExists
protected void ensureFolderExists(java.io.File targetFile)
-
-