From 8a96a79972f839c240a8e751121d6a2a9a6c0913 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Wed, 30 Mar 2022 12:31:57 +0200 Subject: [PATCH] Fix the config structure for chrome prefs This is a map node, not a list node. --- .../ServiceContainer/Driver/Selenium2Factory.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Behat/MinkExtension/ServiceContainer/Driver/Selenium2Factory.php b/src/Behat/MinkExtension/ServiceContainer/Driver/Selenium2Factory.php index c5d28e6..c651085 100644 --- a/src/Behat/MinkExtension/ServiceContainer/Driver/Selenium2Factory.php +++ b/src/Behat/MinkExtension/ServiceContainer/Driver/Selenium2Factory.php @@ -146,7 +146,11 @@ class Selenium2Factory implements DriverFactory ->arrayNode('switches')->prototype('scalar')->end()->end() ->scalarNode('binary')->end() ->arrayNode('extensions')->prototype('scalar')->end()->end() - ->arrayNode('prefs')->prototype('variable')->end()->end() + ->arrayNode('prefs') + ->normalizeKeys(false) + ->useAttributeAsKey('name') + ->prototype('variable')->end() + ->end() ->end() ->end() ->arrayNode('extra_capabilities')