rogerxu / rogerxu.github.io

Roger Xu's Blog
3 stars 2 forks source link

PhantomJS #123

Open rogerxu opened 7 years ago

rogerxu commented 7 years ago

Web Driver

Built-in in Selenium webdriver API

phantom.binary.path

rogerxu commented 7 years ago

Maven

Install PhantomJS

Which dependency/plugin?

anthavio/phanbedder: PhantomJS Windows/Mac OS X/Linux native binary embedder

<dependency>
    <groupId>net.anthavio</groupId>
    <artifactId>phanbedder-2.1.1</artifactId>
    <version>1.0.0</version>
</dependency>
File phantomjs = Phanbedder.unpack();

Run with PhantomJS

Headless system property

Seems not needed any more.

rogerxu commented 7 years ago

ES6 Support