diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-05-15 15:22:49 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-05-19 10:34:06 +0300 |
commit | f2597f7496241bfb3836fce0c0d3d1aa90a2f6dc (patch) | |
tree | 4552acd500802544e53296a34160c97e7b27224e /uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java | |
parent | dd7bcd16def9d8f7fb4e6f16f36966640fa271da (diff) | |
download | vaadin-framework-f2597f7496241bfb3836fce0c0d3d1aa90a2f6dc.tar.gz vaadin-framework-f2597f7496241bfb3836fce0c0d3d1aa90a2f6dc.zip |
Add build parameters to allow running test on local PhantomJS
Change-Id: I99f37403d58385a814347d36b0f8b1a35c63c282
Diffstat (limited to 'uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java | 4 |
1 files changed, 3 insertions, 1 deletions
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 " |