public function isSeleniumServerRunning()
    {
        $seleniumServerIsRunning = false;

        $errorLevel = 0;
        $errorMessage = '';
        $timeout = 1;
        $socket = @fsockopen(
            $this->getSeleniumHost(),
            $this->getSeleniumPort(),
            $errorLevel,
            $errorMessage,
            $timeout
        );

        if ($socket !== false) {
            $seleniumServerIsRunning = true;
            fclose($socket);
        }

        return $seleniumServerIsRunning;
    }