Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bba8c60

Browse files
aik099robocoder
authored andcommittedMar 27, 2025·
Fixed incorrectly built "capabilities" array
1 parent 83b6840 commit bba8c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/WebDriver/WebDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function methods()
4141
public function session($browserName = Browser::FIREFOX, $desiredCapabilities = null, $requiredCapabilities = null)
4242
{
4343
// default to W3C WebDriver API
44-
$firstMatch = $desiredCapabilities ?: array();
44+
$firstMatch = $desiredCapabilities ? array($desiredCapabilities) : array();
4545
$firstMatch[] = array('browserName' => Browser::CHROME);
4646

4747
if ($browserName !== Browser::CHROME) {

0 commit comments

Comments
 (0)
Please sign in to comment.