PhantomJS with Selenium for Faster Tests

Running Selenium tests in browser GUI is painfully slow process. To overcome this sluggishness, it’s often recommended to execute Selenium scripts in non-GUI mode. So how to run automation scripts in non-GUI mode? Enter PhantomJS, a headless JavaScript API built on WebKit browser engine. In this article, we will see how we can configure PhantomJS with Selenium to speed up our automation tests.