protected function getSessionId(Session $session)
	{
		$driver = $session->getDriver();

		if ( $driver instanceof Selenium2Driver ) {
			return $driver->getWebDriverSessionId();
		}

		throw new \RuntimeException('Unsupported session driver');
	}
protected function getSessionId(Session $session)
	{
		$driver = $session->getDriver();

		if ( $driver instanceof Selenium2Driver ) {
			return $driver->getWebDriverSessionId();
		}

		throw new \RuntimeException('Unsupported session driver');
	}
protected function getSessionId ( Session $ session ) { $ driver = $ session -> getDriver ( ) ; if ( $ driver instanceof Selenium2Driver ) { return $ driver -> getWebDriverSessionId ( ) ; } throw new \ RuntimeException ( 'Unsupported session driver' ) ; }
Get Selenium2 current session id.

@param Session $session Session.

@return string
@throws \RuntimeException When session was created using an unsupported driver.
Get Selenium2 current session id .