Creates a new instance of a Selenium PhantomJSDriver
(using the DesiredCapabilities
provided by
the phantomCapabilities
field), or 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 Selenium PhantomJSDriver
(using the DesiredCapabilities
provided by
the phantomCapabilities
field), or 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 PhantomJSDriver
or a BrowserFactory.UnavailableDriver
if a PhantomJS
driver is not available on the host platform.
PhantomJSDriver
'DesiredCapabilities' that are used to create new instance of 'PhantomJSDriver'.
'DesiredCapabilities' that are used to create new instance of 'PhantomJSDriver'. Override to provide a different capabilities.
DesiredCapabilities
Factory whose
createWebDriver
method will either return a new SeleniumPhantomJSDriver
(created using the capabilities specified byphantomCapabilities
), or UnavailableDriver, if Firefox is not available on the host platform.Traits OneBrowserPerSuite and OneBrowserPerTest extend
BrowserFactory
and therefore require you to fill in thecreateWebDriver
method, usually by mixing in one of theBrowserFactory
subtraits such asPhantomJSFactory
.