feature #2 add prefs node to chrome configuration (smildev)

This PR was merged into the 2.1.x-dev branch.

Discussion
----------

It adds the capability to configure a new key 'prefs' to chrome configuration.
We need this to configure the default directory download of chrome.

> example:

    Behat\MinkExtension:
        sessions:
            chrome:
                selenium2:
                    browser: chrome
                    capabilities:
                        .....
                        chrome:
                            switches:
                                - "start-fullscreen"
                                - "start-maximized"
                                - "no-sandbox"
                                - "headless"
                            prefs:
                                download:
                                    default_directory: etc/downloads


Commits
-------

c9bc6c9999 add prefs node to chrome configuration
This commit is contained in:
Kamil Kokot
2021-01-21 10:08:00 +01:00
committed by GitHub

View File

@@ -146,6 +146,7 @@ class Selenium2Factory implements DriverFactory
->arrayNode('switches')->prototype('scalar')->end()->end() ->arrayNode('switches')->prototype('scalar')->end()->end()
->scalarNode('binary')->end() ->scalarNode('binary')->end()
->arrayNode('extensions')->prototype('scalar')->end()->end() ->arrayNode('extensions')->prototype('scalar')->end()->end()
->arrayNode('prefs')->prototype('variable')->end()->end()
->end() ->end()
->end() ->end()
->arrayNode('extra_capabilities') ->arrayNode('extra_capabilities')