We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5477650 commit c23f267Copy full SHA for c23f267
src/ProcessManager/ChromeManager.php
@@ -60,9 +60,13 @@ public function start(): WebDriver
60
}
61
62
if ($this->arguments) {
63
- $chromeOptions = new ChromeOptions();
+ $chromeOptions = $capabilities->getCapability(ChromeOptions::CAPABILITY);
64
+ if (null === $chromeOptions) {
65
+ $chromeOptions = new ChromeOptions();
66
+ $capabilities->setCapability(ChromeOptions::CAPABILITY, $chromeOptions);
67
+ }
68
$chromeOptions->addArguments($this->arguments);
- $capabilities->setCapability(ChromeOptions::CAPABILITY, $chromeOptions);
69
+
70
if (isset($_SERVER['PANTHER_CHROME_BINARY'])) {
71
$chromeOptions->setBinary($_SERVER['PANTHER_CHROME_BINARY']);
72
0 commit comments