Package io.testproject.sdk.drivers
Interface ReportingDriver
-
- All Known Implementing Classes:
AndroidDriver
,ChromeDriver
,EdgeDriver
,FirefoxDriver
,InternetExplorerDriver
,IOSDriver
,RemoteWebDriver
,SafariDriver
public interface ReportingDriver
Interface to reference drivers reporting commands execution.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ReportingCommandsExecutor
getReportingCommandExecutor()
Returns driver's command executor.default java.lang.String
getScreenshot()
Takes a screenshot using the driver.Reporter
report()
Extension method to get an instance of the reporter initialized by the driver.
-
-
-
Method Detail
-
report
Reporter report()
Extension method to get an instance of the reporter initialized by the driver.- Returns:
- Reporter instance.
-
getScreenshot
default java.lang.String getScreenshot()
Takes a screenshot using the driver.- Returns:
- Screenshot taken (PNG) as base64 string.
-
getReportingCommandExecutor
default ReportingCommandsExecutor getReportingCommandExecutor()
Returns driver's command executor.- Returns:
- An instance of
ReportingCommandsExecutor
used by the driver.
-
-