JTAF-ExtWebDriver icon indicating copy to clipboard operation
JTAF-ExtWebDriver copied to clipboard

Enable PhantomJS as a browser

Open opensource21 opened this issue 11 years ago • 4 comments

PhantomJS allows headless test against the QtWebKit. You can find information how to integrate at

and there is an interesting maven package from arquillian and one for the binaries.

opensource21 avatar Aug 13 '14 09:08 opensource21

We chose HtmlUnitDriver since this was part of Selenium and maintained by the Selenium community. We initially looked at PhantomJS (GhostDriver). What was the time difference between HTMLUnitDriver and PhantomJS with our integration tests?

kood1 avatar Aug 13 '14 16:08 kood1

Well it's slower 2x, but it contains a real webbrowser. I don't think it should be a replacement for HTMLUnit. I think it should be another option like chrome, ff...

opensource21 avatar Aug 13 '14 19:08 opensource21

Users can use PhantomJS by providing their own SessionFactory implementation right now so it is still possible. Adding easy support so that users can simply provide browser=phantomjs in client properties would be something to discuss.

kood1 avatar Aug 13 '14 19:08 kood1

Own SessionFactories are difficult to register. So I think it's would be good to have support for it. Specially it's the idea of an additional selenium library to make the usage easier ;-)

2014-08-13 21:24 GMT+02:00 Daniel Koo [email protected]:

Users can use PhantomJS by providing their own SessionFactory implementation right now so it is still possible. Adding easy support so that users can simply provide browser=phantomjs in client properties would be something to discuss.

— Reply to this email directly or view it on GitHub https://github.com/FINRAOS/JTAF-ExtWebDriver/issues/77#issuecomment-52097466 .

opensource21 avatar Aug 13 '14 19:08 opensource21