Is it possible to use Selenium WebDriver to drive PhantomJS?

后端 未结 2 889
眼角桃花
眼角桃花 2021-01-31 08:26

I’m going through the documentation for the Selenium WebDriver, and it can drive Chrome for example. I was thinking, wouldn\'t it be far more efficient to ‘drive’ PhantomJS?

2条回答
  •  星月不相逢
    2021-01-31 09:21

    @Joseph, since the 1.8 release GhostDriver is included in the stable release of PhantomJS. Here is the exact release notes: http://phantomjs.org/release-1.8.html. You can simply start PhantomJS process to listen on some port, like this:

    phantomjs --webdriver=PORT
    

    Kudos to @detro and PhantomJS team for awesome work!

提交回复
热议问题