Package io.testproject.sdk.drivers
Interface ReportingDriver
-
- All Known Implementing Classes:
AndroidDriver
,ChromeDriver
,EdgeDriver
,FirefoxDriver
,GenericDriver
,InternetExplorerDriver
,IOSDriver
,RemoteWebDriver
,SafariDriver
public interface ReportingDriver
Interface to reference drivers reporting commands execution.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
Logger instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AddonsHelper
addons()
Provides access to the addons functionality.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.void
stop()
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
ReportingCommandsExecutor
used by the driver.
-
stop
void stop()
Stops the driver and perform necessary cleanup.
-
addons
default AddonsHelper addons()
Provides access to the addons functionality.- Returns:
AddonsHelper
instance.
-
-