Skip to content

Commit

Permalink
Fixed incorrectly built "capabilities" array
Browse files Browse the repository at this point in the history
  • Loading branch information
aik099 committed Mar 19, 2024
1 parent 83b6840 commit e6358ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WebDriver/WebDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e6358ab

Please sign in to comment.