Skip to content

Commit

Permalink
Merge pull request #390 from aik099/desired-capabilities-fix
Browse files Browse the repository at this point in the history
Unify `browserName` given through different sources
  • Loading branch information
stof authored Jun 26, 2024
2 parents a3a5370 + a6cfcfa commit a56db27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Selenium2Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ public function setDesiredCapabilities(?array $desiredCapabilities = null)
$desiredCapabilities = array();
}

$desiredCapabilities['browserName'] = $this->browserName;

// Join $desiredCapabilities with defaultCapabilities
$desiredCapabilities = array_replace(self::getDefaultCapabilities(), $desiredCapabilities);

Expand Down

0 comments on commit a56db27

Please sign in to comment.