海工商新版后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
549 B

<?php
namespace Tests;
use Laravel\Dusk\Chrome\ChromeProcess as BaseChromeProcess;
class ChromeProcess extends BaseChromeProcess
{
public function __construct($driver = null)
{
parent::__construct($driver);
if ($this->onWindows() && is_file($driver = __DIR__.'/resources/drivers/chromedriver-win.exe')) {
$this->driver = realpath($driver);
} elseif ($this->onMac() && is_file($driver = __DIR__.'/resources/drivers/chromedriver-mac')) {
$this->driver = realpath($driver);
}
}
}