Is it possible to use Selenium WebDriver to drive PhantomJS?

后端 未结 2 884
眼角桃花
眼角桃花 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:16

    PhantomJS now includes the GhostDriver project.

    You are also suggested to use PhantomJS directly or with a convenience library such as CasperJS. CasperJS is specifically designed to make it easy to do sequential operations to web pages, perfect for many automation tasks.

    Disclaimer: I am the author of PhantomJS.

    Edit: As noted in Nick's answer, GhostDriver is now included in PhantomJS.

提交回复
热议问题