diff --git a/lib/WebDriver/WebDriver.php b/lib/WebDriver/WebDriver.php index 008a9f4..abc84bf 100644 --- a/lib/WebDriver/WebDriver.php +++ b/lib/WebDriver/WebDriver.php @@ -41,7 +41,7 @@ protected function methods() public function session($browserName = Browser::FIREFOX, $desiredCapabilities = null, $requiredCapabilities = null) { // default to W3C WebDriver API - $firstMatch = $desiredCapabilities ?: array(); + $firstMatch = $desiredCapabilities ? array($desiredCapabilities) : array(); $firstMatch[] = array('browserName' => Browser::CHROME); if ($browserName !== Browser::CHROME) {