Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit c3012e9

Browse files
committed
PhantomJS to BrowserManagement
1 parent d089955 commit c3012e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/github/markusbernhardt/seleniumlibrary/keywords/BrowserManagement.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
3838
import org.openqa.selenium.ie.InternetExplorerDriver;
3939
import org.openqa.selenium.opera.OperaDriver;
40-
40+
import org.openqa.selenium.phantomjs.PhantomJSDriver;
4141
import org.openqa.selenium.remote.Augmenter;
4242
import org.openqa.selenium.remote.DesiredCapabilities;
4343
import org.openqa.selenium.remote.HttpCommandExecutor;
@@ -644,6 +644,8 @@ protected WebDriver createLocalWebDriver(String browserName, DesiredCapabilities
644644
return new ChromeDriver(desiredCapabilities);
645645
case "opera":
646646
return new OperaDriver(desiredCapabilities);
647+
case "phantomjs":
648+
return new PhantomJSDriver(desiredCapabilities);
647649
case "safari":
648650
return new SafariDriver(desiredCapabilities);
649651
case "htmlunit":
@@ -861,4 +863,4 @@ protected void setRemoteWebDriverProxy(HttpCommandExecutor httpCommandExecutor)
861863
String.format("The %s field does not contain a %s.", fieldName, className));
862864
}
863865
}
864-
}
866+
}

0 commit comments

Comments
 (0)