Package org.shakespeareframework.selenium
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.
-
ClassDescription
Enum
of all browser types which are supported byWebDriverSupplier
.Ability
to browse the web using a SeleniumWebDriver
.Reporter using theActor
'sBrowseTheWeb.getWebDriver()
to take an HTML snapshot of the currently displayed site.AWebDriverSupplier
for locally installed browser instances.Reporter using theActor
'sBrowseTheWeb.getWebDriver()
asTakesScreenshot
to take a screenshot of the currently displayed site.RuntimeException
to be thrown when the given string did not match anyBrowserType
.AWebDriverSupplier
based onWebDriverManager
.