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
LocalWebDriverSupplierto use a pre-installed local browser, - the
WebDriverManagerWebDriverSupplierto use a self configuredWebDriverManager(the other two extend this but are pre-configured).
Additionally, the package contains some Reporters:
- the
ScreenshotReporterto take screenshots of the current website, and - the
HtmlSnapshotReporterto store an HTML snapshot of the current website.
Both are FileReporters and store the report files
according to the implementation there.
-
ClassDescription
Enumof all browser types which are supported byWebDriverSupplier.Abilityto browse the web using a SeleniumWebDriver.Reporter using theActor'sBrowseTheWeb.getWebDriver()to take an HTML snapshot of the currently displayed site.AWebDriverSupplierfor locally installed browser instances.Reporter using theActor'sBrowseTheWeb.getWebDriver()asTakesScreenshotto take a screenshot of the currently displayed site.RuntimeExceptionto be thrown when the given string did not match anyBrowserType.AWebDriverSupplierbased onWebDriverManager.