From e6358ab33c550beb18b220658650c26ea490a9eb Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 19 Mar 2024 12:04:52 +0200 Subject: [PATCH] Fixed incorrectly built "capabilities" array --- lib/WebDriver/WebDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {