New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebDriver driver= new PhantomJSDriver(); #5295
Comments
PhantomJS is no longer maintained. Support for it has been removed from Selenium since Chrome and Firefox now support headless mode. not sure why that didn't make it to the changelogs. |
Thanks @cgoldberg for the update. But I still wonder why to drop the support for PhantomJS all of a sudden? At the level best we could have deprecated PhantomJS so users could have adjusted their framework dependencies till the actual removal. @AutomatedTester @shs96c @lmtierney @jimevans your take please? |
Given that the PhantomJS driver in Java was a third-party jar that was packaged in the standalone server as a convenience, you should be able to include the same jar as a dependency in your own project and get that functionality back. Moreover, since the Java PhantomJS driver was not maintained by the Selenium project, I’m not entirely sure how it could’ve been marked as deprecated before removal. Finally, this would only apply to the Java bindings, since the phantomJS driver in the other language bindings is part of the Selenium project. Disclaimer: This isn’t an “official” project position. You asked for my take, so I’m giving it. Now I’m going back to my holiday. |
Selenium discontinued PhantomJS support for two reasons:
As Jim noted, we can't mark this class deprecated because in Java binding it's a third-party library. We just dropped dependency on it in selenium-java Maven artifact and stopped packing it into selenium-server-standalone. But you can explicitly add dependency on PhantomJS driver to the classpath and use it. Just be aware about potential compatibility issues. P.S. I've updated CHANGELOG, sorry for this omission. |
Meta - What happened with "PhantomJSDriver" ?
With
Selenium-Java v3.8.1
WebDriver driver= new PhantomJSDriver();
doesn't resolves any more on IDE.JavaDocs have dropped the reference of
PhantomJSDriver
fromInterface WebDriver
page.Selenium-Java v3.8.1
CHANGELOG haven't spoken aboutPhantomJSDriver
for a while.OS: Windows8
Selenium Version: 3.8.1
Browser: PhantomJSDriver
Browser Version: 2.1.1
Expected Behavior -
WebDriver driver= new PhantomJSDriver();
should resolve on IDE.Actual Behavior -
WebDriver driver= new PhantomJSDriver();
doesn't resolves any more on IDE.Steps to reproduce -
Minimal Code Block :
The text was updated successfully, but these errors were encountered: