Remove empty chrome prefs from the capabilities
This commit is contained in:
@@ -152,6 +152,15 @@ class Selenium2Factory implements DriverFactory
|
|||||||
->prototype('variable')->end()
|
->prototype('variable')->end()
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
|
->validate()
|
||||||
|
->ifTrue(function ($v) {
|
||||||
|
return empty($v['prefs']);
|
||||||
|
})
|
||||||
|
->then(function ($v) {
|
||||||
|
unset($v['prefs']);
|
||||||
|
return $v;
|
||||||
|
})
|
||||||
|
->end()
|
||||||
->end()
|
->end()
|
||||||
->arrayNode('extra_capabilities')
|
->arrayNode('extra_capabilities')
|
||||||
->info('Custom capabilities merged with the known ones')
|
->info('Custom capabilities merged with the known ones')
|
||||||
|
|||||||
Reference in New Issue
Block a user