@@ -21,7 +21,7 @@ configuration) in that test case class.
2121
2222.. literalinclude :: examples/configuration/config_via_browsers_property.php
2323 :linenos:
24- :emphasize-lines: 8,9,15
24+ :emphasize-lines: 8,9,16
2525
2626.. note :: When several browser configurations are specified in ``$browsers`` array, then each test
2727 in a test case will be executed against each of browser configurations.
@@ -35,27 +35,38 @@ option (line 14) to the browser configuration.
3535
3636.. literalinclude :: examples/configuration/per_test_case_browser_config.php
3737 :linenos:
38- :emphasize-lines: 14
38+ :emphasize-lines: 15
39+
40+ Selecting the Mink Driver
41+ ^^^^^^^^^^^^^^^^^^^^^^^^^
42+ With the help of ``driver `` and ``driverOptions `` browser configuration settings (since v2.1.0) it's possible to
43+ specify which `Mink `_ driver to use. This file demonstrates how to use each driver:
44+
45+ .. literalinclude :: examples/configuration/driver_showcase.php
46+ :linenos:
47+ :emphasize-lines: 10,20,32,40
3948
4049Configuration Options
4150^^^^^^^^^^^^^^^^^^^^^
4251Each browser configuration consists of the following settings (all optional):
4352
44- ======================= =================================================================================================
53+ ======================= ==================================================================================================
4554Name Description
46- ======================= =================================================================================================
47- ``host `` host, where Selenium Server is located (defaults to ``localhost ``)
48- ``port `` port, on which Selenium Server is listening for incoming connections (defaults to ``4444 ``)
49- ``timeout `` connection timeout of the server in seconds (defaults to ``60 ``)
55+ ======================= ==================================================================================================
56+ ``driver `` Mink driver name (defaults to ``selenium2 ``, since v2.1.0)
57+ ``driverOptions `` Mink driver specific options (since v2.1.0)
58+ ``host `` host, where driver's server is located (defaults to ``localhost ``)
59+ ``port `` port, on which driver's server is listening for incoming connections (determined by driver)
60+ ``timeout `` connection timeout of the server in seconds ('selenium2' driver only, defaults to ``60 ``)
5061``browserName `` name of browser to use (e.g. ``firefox ``, ``chrome ``, etc., defaults to ``firefox ``)
51- ``desiredCapabilities `` parameters, that specify additional browser configuration (e.g. browser version, platform, etc.) ,
52- that will be used by Selenium server
62+ ``desiredCapabilities `` parameters, that allow to fine-tune browser and other 'selenium2' driver options (e.g. 'tags' ,
63+ 'project', 'os', 'version')
5364``baseUrl `` base url of website, that is tested
5465``sessionStrategy `` used session strategy (defaults to ``isolated ``)
5566``type `` type of configuration (defaults to ``default ``, but can also be ``saucelabs `` or ``browserstack ``)
56- ``api_username `` API username of used service (applicable to any but `` default `` configuration type )
57- ``api_key `` API key of used service (applicable to any but `` default `` configuration type )
58- ======================= =================================================================================================
67+ ``apiUsername `` API username of used service (applicable to 'saucelabs' and 'browserstack' browser configurations )
68+ ``apiKey `` API key of used service (applicable to 'saucelabs' and 'browserstack' browser configurations )
69+ ======================= ==================================================================================================
5970
6071There are also corresponding setters (e.g. ``setHost ``) and getters (e.g. ``getHost ``) for each of mentioned
6172above settings, that allow to individually change them from ``setUp `` method before test has started.
0 commit comments