From 27ffbde33d7be02b6e82c85b21ea7658a1b92323 Mon Sep 17 00:00:00 2001 From: James Bodkin Date: Tue, 15 Jan 2013 17:28:37 +0000 Subject: [PATCH] Add firefox profile configuration to selenium2 driver --- src/Behat/MinkExtension/Extension.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Behat/MinkExtension/Extension.php b/src/Behat/MinkExtension/Extension.php index 9066350..0b5672e 100644 --- a/src/Behat/MinkExtension/Extension.php +++ b/src/Behat/MinkExtension/Extension.php @@ -271,6 +271,18 @@ class Extension implements ExtensionInterface thenUnset()-> end()-> end()-> + arrayNode('firefox')-> + children()-> + scalarNode('profile')-> + validate()-> + ifTrue(function ($v) { + return !file_exists($v); + })-> + thenInvalid('Cannot find profile zip file %s')-> + end()-> + end()-> + end()-> + end()-> arrayNode('chrome')-> children()-> arrayNode('switches')->