Package io.testproject.sdk.drivers
Interface ReportingDriver
-
- All Known Implementing Classes:
AndroidDriver,ChromeDriver,EdgeDriver,FirefoxDriver,GenericDriver,InternetExplorerDriver,IOSDriver,RemoteWebDriver,SafariDriver
public interface ReportingDriverInterface to reference drivers reporting commands execution.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOGLogger instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AddonsHelperaddons()Provides access to the addons functionality.default ReportingCommandsExecutorgetReportingCommandExecutor()Returns driver's command executor.default java.lang.StringgetScreenshot()Takes a screenshot using the driver.Reporterreport()Extension method to get an instance of the reporter initialized by the driver.voidstop()Stops the driver and perform necessary cleanup.
-
-
-
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
ReportingCommandsExecutorused by the driver.
-
stop
void stop()
Stops the driver and perform necessary cleanup.
-
addons
default AddonsHelper addons()
Provides access to the addons functionality.- Returns:
AddonsHelperinstance.
-
-