File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ The following environment variables can be set to change some Panther behaviors:
194194* ` PANTHER_CHROME_ARGUMENTS ` : to customize ` chromedriver ` arguments. You need to set ` PANTHER_NO_HEADLESS ` to fully customize.
195195* ` PANTHER_WEB_SERVER_PORT ` : to change the web server's port (default to ` 9080 ` )
196196* ` PANTHER_WEB_SERVER_ROUTER ` : to use a web server router script which is run at the start of each HTTP request
197+ * ` PANTHER_CHROME_BINARY ` : to use another ` google-chrome ` binary
197198
198199### Accepting Self-signed SSL Certificates
199200
Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ public function start(): WebDriver
5454 $ chromeOptions = new ChromeOptions ();
5555 $ chromeOptions ->addArguments ($ this ->arguments );
5656 $ capabilities ->setCapability (ChromeOptions::CAPABILITY , $ chromeOptions );
57+ if (isset ($ _SERVER ['PANTHER_CHROME_BINARY ' ])) {
58+ $ chromeOptions ->setBinary ($ _SERVER ['PANTHER_CHROME_BINARY ' ]);
59+ }
5760 }
5861
5962 return RemoteWebDriver::create ($ url , $ capabilities );
You can’t perform that action at this time.
0 commit comments