src/Process/SeleniumProcess.php
public function addBinary(BinaryInterface $binary, $directory)
    {
        if (! $binary->exists($directory)) {
            return;
        }

        if ($binary instanceof DriverInterface) {
            $this->addArg('-D' . $binary->getDriverPath($directory));
            return;
        }

        if($this->pathContains($binary->getFileName(), ".jar")){
            $this->addArg('-jar');
        }

        $this->addArg(realpath($directory . '/' . $binary->getFileName()));
    }
public function addBinary(BinaryInterface $binary, $directory)
    {
        if (! $binary->exists($directory)) {
            return;
        }

        if ($binary instanceof DriverInterface) {
            $this->addArg('-D' . $binary->getDriverPath($directory));
            return;
        }

        if($this->pathContains($binary->getFileName(), ".jar")){
            $this->addArg('-jar');
        }

        $this->addArg(realpath($directory . '/' . $binary->getFileName()));
    }
{@inheritdoc}

@param BinaryInterface $binary
@param string $directory
@return void