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);
    }
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);
    }
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 ) ; }
Create a new WebDriver session.

@param  string $browser
@return Session
Create a new WebDriver session .