public function getBrowser($startPage, $type = '*firefox')
    {
        $url    = 'http://'.$this->host.':'.$this->port.'/selenium-server/driver/';
        $driver = new Driver($url, $this->timeout);

        $class  = $this->browserClass;

        return new $class($driver, $startPage, $type);
    }
public function getBrowser($startPage, $type = '*firefox')
    {
        $url    = 'http://'.$this->host.':'.$this->port.'/selenium-server/driver/';
        $driver = new Driver($url, $this->timeout);

        $class  = $this->browserClass;

        return new $class($driver, $startPage, $type);
    }
public function getBrowser ( $ startPage , $ type = '*firefox' ) { $ url = 'http://' . $ this -> host . ':' . $ this -> port . '/selenium-server/driver/' ; $ driver = new Driver ( $ url , $ this -> timeout ) ; $ class = $ this -> browserClass ; return new $ class ( $ driver , $ startPage , $ type ) ; }
Creates a new browser instance.

@param string $startPage The URL of the website to test
@param string $type      Type of browser, for Selenium

@return Browser A browser instance
Creates a new browser instance .