We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83b6840 commit bba8c60Copy full SHA for bba8c60
lib/WebDriver/WebDriver.php
@@ -41,7 +41,7 @@ protected function methods()
41
public function session($browserName = Browser::FIREFOX, $desiredCapabilities = null, $requiredCapabilities = null)
42
{
43
// default to W3C WebDriver API
44
- $firstMatch = $desiredCapabilities ?: array();
+ $firstMatch = $desiredCapabilities ? array($desiredCapabilities) : array();
45
$firstMatch[] = array('browserName' => Browser::CHROME);
46
47
if ($browserName !== Browser::CHROME) {
0 commit comments