Package org.shakespeareframework.selenium
The central class of the selenium package is the
BrowseTheWeb
Ability, which requires a WebDriverSupplier
to be instantiated.
The following suppliers are available too:
- the
LocalWebDriverSupplier
to use a pre-installed local browser, - the
WebDriverManagerWebDriverSupplier
to use a self configuredWebDriverManager
(the other two extend this but are pre-configured).
Additionally, the package contains some Reporters:
- the
ScreenshotReporter
to take screenshots of the current website, and - the
HtmlSnapshotReporter
to store an HTML snapshot of the current website.
Both are FileReporter
s and store the report files
according to the implementation there.
-
Class Summary Class Description BrowseTheWeb Ability
to browse the web using a SeleniumWebDriver
.HtmlSnapshotReporter Reporter using theActor
'sBrowseTheWeb.getWebDriver()
to take an HTML snapshot of the currently displayed site.LocalWebDriverSupplier AWebDriverSupplier
for locally installed browser instances.ScreenshotReporter Reporter using theActor
'sBrowseTheWeb.getWebDriver()
asTakesScreenshot
to take a screenshot of the currently displayed site.WebDriverManagerWebDriverSupplier AWebDriverSupplier
based onWebDriverManager
.WebDriverSupplier ASupplier
forWebDriver
, which also takes care ofquitting
theWebDriver
. -
Enum Summary Enum Description BrowserType Enum
of all browser types which are supported byWebDriverSupplier
. -
Exception Summary Exception Description UnsupportedBrowserTypeException RuntimeException
to be thrown when the given string did not match anyBrowserType
.WebDriverSetupFailedException