@@ -0,0 +1,1651 @@
+/**%0A * Created with IntelliJ IDEA.%0A * User: liberus%0A * Date: 3/25/13%0A * Time: 2:57 PM%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apackage org.openqa.selenium.testing.drivers;%0A%0Aimport com.google.common.base.Supplier;%0Aimport org.openqa.selenium.Capabilities;%0Aimport org.openqa.selenium.WebDriver;%0Aimport org.openqa.selenium.remote.LocalFileDetector;%0Aimport org.openqa.selenium.remote.RemoteWebDriver;%0Aimport java.net.MalformedURLException;%0A%0A%0Apublic class QtWebKitDriverSupplier implements Supplier%3CWebDriver%3E%7B%0A%0A    private Capabilities desiredCapabilities;%0A    private Capabilities requiredCapabilities;%0A%0A    public QtWebKitDriverSupplier(Capabilities desiredCapabilities,%0A                          Capabilities requiredCapabilities) %7B%0A        this.desiredCapabilities = desiredCapabilities;%0A        this.requiredCapabilities = requiredCapabilities;%0A    %7D%0A%0A    public WebDriver get() %7B%0A        if (desiredCapabilities == null %7C%7C !Boolean.getBoolean(%22selenium.browser.qtwebkit%22)) %7B%0A            System.out.println(%22Wrong capability was set!%22);%0A            Thread.dumpStack();%0A            return null;%0A        %7D%0A%0A        java.net.URL hostURL;%0A%0A        try %7B%0A            hostURL = new java.net.URL(%22http://localhost:9517%22);%0A        %7D catch (java.net.MalformedURLException e) %7B%0A            e.printStackTrace();  //To change body of catch statement use File %7C Settings %7C File Templates.%0A            return null;%0A        %7D%0A%0A        RemoteWebDriver driver = new RemoteWebDriver(%0A                hostURL, desiredCapabilities, requiredCapabilities);%0A        driver.setFileDetector(new LocalFileDetector());%0A        return driver;%0A    %7D%0A%7D%0A

Add QtWebKitDriverSupplier