protected function newSession()
    {
        $config = $this->getPackageConfig();

        $host = isset($config['selenium']['host']) ? $config['selenium']['host'] : 'http://localhost:4444/wd/hub';

        $this->webDriver = new WebDriver($host);
        $capabilities = [];

        return $this->session = $this->webDriver->session($this->getBrowserName(), $capabilities);
    }