protected WebDriver getDefaultDriver(DesiredCapabilities caps) {
		String hubUrl = getHubUrl();
		if (hubUrl == null) {
			return new FirefoxDriver(caps);
		}
		try {
			return new RemoteWebDriver(new URL(hubUrl), caps);
		} catch (MalformedURLException e) {
			throw new SebException("Unable to construct remote webdriver.", e);
		}
	}
protected WebDriver getDefaultDriver ( DesiredCapabilities caps ) { String hubUrl = getHubUrl ( ) ; if ( hubUrl == null ) { return new FirefoxDriver ( caps ) ; } try { return new RemoteWebDriver ( new URL ( hubUrl ) , caps ) ; } catch ( MalformedURLException e ) { throw new SebException ( "Unable to construct remote webdriver." , e ) ; } }
Returns default {@link WebDriver} instance. Override this for different
value.

@param caps
The non null desired capabilities.
@return The driver