Looks in args.configMap for a key named "org.
Looks in args.configMap for a key named "org.scalatestplus.play.webDriver" whose value is a WebDriver,
and if it exists, sets the WebDriver as
the value that will be returned from the webDriver method, then calls
super.run.
If no key matches "org.scalatestplus.play.webDriver" in args.configMap,
or the associated value is not a WebDriver, throws IllegalArgumentException.
an optional name of one test to run. If None, all relevant tests should be run.
I.e., None acts like a wildcard that means run all relevant tests in this Suite.
the Args for this run
a Status object that indicates when all tests and nested suites started by this method have completed, and whether or not a failure occurred.
if the WebDriver does not appear in args.configMap under the expected key
The "configured" Selenium WebDriver, passed into run via the ConfigMap.
The "configured" Selenium WebDriver, passed into run via the ConfigMap.
the configured port number
Trait that provides a configured
FakeApplication, server port number, and SeleniumWebDriverto the suite into which it is mixed.The purpose of this trait is to allow nested suites of an enclosing suite that extends OneBrowserPerSuite to make use of the
WebDriverprovided byOneBrowserPerSuite. TraitOneBrowserPerSuitewill ensure theWebDriveris placed in theConfigMapunder the keyorg.scalatestplus.play.webDriverbefore nested suites are invoked. This information represents the "configured browser" that is passed from the enclosing suite to the nested suites. TraitConfiguredBrowserextracts this information from from theConfigMapand makes theWebDriveravailable implicitly from thewebDrivermethod.This trait's self-type, ServerProvider, will ensure a
TestServerandFakeApplicationare available to each test. The self-type will require that you mix in either OneServerPerSuite, OneServerPerTest, ConfiguredServer before you mix in this trait. Your choice among these threeServerProviders will determine the extent to which one or moreTestServers are shared by multiple tests.To prevent discovery of nested suites you can annotate them with
@DoNotDiscover. Here's an example taken from the documentation for trait OneBrowserPerSuite: