public function getWebDriverProxyConfig()
    {
        $this->requireOpenConnection();

        $address = new HttpAddress($this->getUrl());

        return array (
            'proxyType' => 'manual',
            'httpProxy' => $address->hostname . ':' . $this->getPort(),
            'sslProxy'  => $address->hostname . ':' . $this->getPort()
        );
    }