Package org.fluentlenium.core
Class FluentDriverScreenshotPersister
- java.lang.Object
-
- org.fluentlenium.core.FluentDriverScreenshotPersister
-
public class FluentDriverScreenshotPersister extends Object
Persists a screenshot to a target file.
-
-
Constructor Summary
Constructors Constructor Description FluentDriverScreenshotPersister(Configuration configuration, org.openqa.selenium.WebDriver driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
persistScreenshot(String fileName)
Persists a screenshot to the argument target file using the screenshot path fromConfiguration
.
-
-
-
Constructor Detail
-
FluentDriverScreenshotPersister
public FluentDriverScreenshotPersister(Configuration configuration, org.openqa.selenium.WebDriver driver)
-
-
Method Detail
-
persistScreenshot
public void persistScreenshot(String fileName)
Persists a screenshot to the argument target file using the screenshot path fromConfiguration
.If there is no screenshot path set in the configuration, the file will be the argument file name, otherwise the argument file name will be concatenated to the screenshot path to create the destination file.
- Parameters:
fileName
- the target file to save the screenshot to- Throws:
ScreenshotNotCreatedException
- when an error occurs during taking the screenshot
-
-