public function new_session(array $desiredCapabilities = NULL)
	{
		if ( ! $desiredCapabilities)
		{
			$desiredCapabilities = array('browserName' => 'firefox');
		}

		$session = $this->post('session', array('desiredCapabilities' => $desiredCapabilities));
		return $session['webdriver.remote.sessionid'];
	}
public function new_session(array $desiredCapabilities = NULL)
	{
		if ( ! $desiredCapabilities)
		{
			$desiredCapabilities = array('browserName' => 'firefox');
		}

		$session = $this->post('session', array('desiredCapabilities' => $desiredCapabilities));
		return $session['webdriver.remote.sessionid'];
	}
public function new_session ( array $ desiredCapabilities = NULL ) { if ( ! $ desiredCapabilities ) { $ desiredCapabilities = array ( 'browserName' => 'firefox' ) ; } $ session = $ this -> post ( 'session' , array ( 'desiredCapabilities' => $ desiredCapabilities ) ) ; return $ session [ 'webdriver.remote.sessionid' ] ; }
Initiate a new session, based on the desired capabilities
@param  array $desiredCapabilities
@return new session
Initiate a new session based on the desired capabilities