Using selenium and phantomjs with Maven

Here are the dependencies you will need to use Selenium and PhantomJS with Maven.


and in your code call the following


WebDriverManager downloads the latest version of the required PhantomJS binary to be used with Selenium WebDriver.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.