From f2597f7496241bfb3836fce0c0d3d1aa90a2f6dc Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Thu, 15 May 2014 15:22:49 +0300 Subject: Add build parameters to allow running test on local PhantomJS Change-Id: I99f37403d58385a814347d36b0f8b1a35c63c282 --- uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java') diff --git a/uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java b/uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java index 97150f96ab..305caf1cb5 100644 --- a/uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java +++ b/uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java @@ -25,11 +25,11 @@ import java.net.SocketException; import java.util.Enumeration; import java.util.Properties; -import org.apache.commons.io.IOUtils; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxBinary; import org.openqa.selenium.firefox.FirefoxDriver; +import org.openqa.selenium.phantomjs.PhantomJSDriver; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.safari.SafariDriver; @@ -185,6 +185,8 @@ public abstract class PrivateTB3Configuration extends ScreenshotTB3Test { driver = new ChromeDriver(); } else if (BrowserUtil.isSafari(desiredCapabilities)) { driver = new SafariDriver(); + } else if (BrowserUtil.isPhantomJS(desiredCapabilities)) { + driver = new PhantomJSDriver(); } else { throw new RuntimeException( "Not implemented support for running locally on " -- cgit v1.2.3