Creates a new instance of a valid Selenium WebDriver
, or if a driver is unavailable on the host platform,
returns a BrowserFactory.UnavailableDriver that includes
the exception that indicated the driver was not supported on the host platform and an appropriate
error message.
Creates a new instance of a valid Selenium WebDriver
, or if a driver is unavailable on the host platform,
returns a BrowserFactory.UnavailableDriver that includes
the exception that indicated the driver was not supported on the host platform and an appropriate
error message.
an new instance of a Selenium WebDriver
, or a BrowserFactory.UnavailableDriver
if the desired WebDriver
is not available on the host platform.
Trait that defines an abstract
createWebDriver
method for creating a new SeleniumWebDriver
and an abstractunableToCreateDriverErrorMessage
method that provides an appropriate error message if the driver is not available on the current platform.Traits OneBrowserPerSuite and OneBrowserPerTest extend
BrowserFactory
and therefore require you to fill in thecreateWebDriver
method, usually by mixing in one of theBrowserFactory
subtraits.