Package net.serenitybdd.core.photography
Class WebDriverPhotoLens
java.lang.Object
net.serenitybdd.core.photography.WebDriverPhotoLens
- All Implemented Interfaces:
PhotoLens
Take a screenshot with a specified WebDriver instance.
By default screenshots will be taken using standard Selenium.
You can override the default behaviour by setting the screenshot.shooter property
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.WebDriver
byte[]
-
Constructor Details
-
WebDriverPhotoLens
public WebDriverPhotoLens(org.openqa.selenium.WebDriver driver)
-
-
Method Details
-
getDriver
public org.openqa.selenium.WebDriver getDriver() -
takeScreenshot
- Specified by:
takeScreenshot
in interfacePhotoLens
- Throws:
IOException
-