package io.tromba.testdriver;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

/**
 * Factory for WebDrivers.
 */
public class WebDriverFactory {

    public static WebDriver createInstance() {
        return new ChromeDriver();
    }
}

@@ -55,217 +55,723 @@
 ium.
-WebDriver;%0Aimport org.openqa.selenium.chrome.ChromeDriver;%0A%0A/**%0A * Factory for WebDrivers.%0A */%0Apublic class WebDriverFactory %7B%0A%0A    public static WebDriver createInstance() %7B%0A        return new ChromeDriver();
+Capabilities;%0Aimport org.openqa.selenium.WebDriver;%0Aimport org.openqa.selenium.remote.DesiredCapabilities;%0Aimport org.openqa.selenium.remote.RemoteWebDriver;%0A%0Aimport java.net.MalformedURLException;%0Aimport java.net.URL;%0A%0A/**%0A * Factory for WebDrivers.%0A */%0Apublic class WebDriverFactory %7B%0A%0A    private static final String url = %22http://localhost:4444/wd/hub%22;%0A%0A    public static WebDriver createInstance() %7B%0A        Capabilities capabilities = DesiredCapabilities.chrome();%0A        try %7B%0A            return new RemoteWebDriver(new URL(url), capabilities);%0A        %7D catch (MalformedURLException ex) %7B%0A            throw new RuntimeException(%22Malformed Remote WebDriver URL: %22 + url + %22%5Cn%22 + ex.getMessage());%0A        %7D
 %0A   

add very basic selenium grid support