src/Chrome/ChromeProcess.php
public function toProcess(array $arguments = [])
    {
        if ($this->driver) {
            return $this->process($arguments);
        }

        if ($this->onWindows()) {
            $this->driver = realpath(__DIR__.'/../../bin/chromedriver-win.exe');
        } elseif ($this->onMac()) {
            $this->driver = realpath(__DIR__.'/../../bin/chromedriver-mac');
        } else {
            $this->driver = realpath(__DIR__.'/../../bin/chromedriver-linux');
        }

        return $this->process($arguments);
    }
public function toProcess(array $arguments = [])
    {
        if ($this->driver) {
            return $this->process($arguments);
        }

        if ($this->onWindows()) {
            $this->driver = realpath(__DIR__.'/../../bin/chromedriver-win.exe');
        } elseif ($this->onMac()) {
            $this->driver = realpath(__DIR__.'/../../bin/chromedriver-mac');
        } else {
            $this->driver = realpath(__DIR__.'/../../bin/chromedriver-linux');
        }

        return $this->process($arguments);
    }
public function toProcess ( array $ arguments = [ ] ) { if ( $ this -> driver ) { return $ this -> process ( $ arguments ) ; } if ( $ this -> onWindows ( ) ) { $ this -> driver = realpath ( __DIR__ . '/../../bin/chromedriver-win.exe' ) ; } elseif ( $ this -> onMac ( ) ) { $ this -> driver = realpath ( __DIR__ . '/../../bin/chromedriver-mac' ) ; } else { $ this -> driver = realpath ( __DIR__ . '/../../bin/chromedriver-linux' ) ; } return $ this -> process ( $ arguments ) ; }
Build the process to run Chromedriver.

@param  array  $arguments
@return \Symfony\Component\Process\Process
Build the process to run Chromedriver .