Configure PhantomJS GhostDriver With Eclipse To Run WebDriver Test

Earlier nosotros learnt how to execute WebDriver essay In headless browser(Browser non visible during essay instance execution) using HTMLUnit driver In THIS POST amongst practical example. Same matter nosotros tin create using PhantomJS GhostDriver. It Is WebKit which Is headless too scriptable amongst javascript
API. You tin read to a greater extent than close PhantomJS on THIS PAGE. Here I volition depict you lot PhantomJs configuration steps amongst eclipse too adjacent post volition say you lot how to execute WebDriver essay instance on PhantomJS headless browser which Is non visible during essay instance execution.

Steps to configure PhantomJS GhostDriver amongst eclipse

Step 1 : Download phantomjs.exe In aught format
First of all you lot postulate to download executable "phantomjs.exe" file's aught folder for windows. Go to THIS PAGE too click on "phantomjs-2.0.0-windows.zip" link for windows equally shown In bellow Image. It volition kickoff downloading the folder.



Step 2 : Extract Zip folder
When completed download, You postulate to extract aught folder to operate past times executable "phantomjs.exe" file. When you lot extract aught folder, There volition endure bin folder Inside It too you lot volition operate past times "phantomjs.exe" file In that bin folder equally shown In bellow Image.


Step 3 : Download phantomjsdriver-1.2.1.jar file
You postulate "phantomjsdriver-1.2.1.jar" file. Go to THIS PAGE too click on phantomjsdriver-1.2.1.jar link to download It.

Step 4 : Add phantomjsdriver-1.2.1.jar file In project's construct path
"phantomjsdriver-1.1.0.jar" file volition endure already available In your projects construct path equally It Is comes amongst WebDriver jounce files. But If you lot volition execute your WebDriver essay on PhantomJS GhostDriver using 1.1.0 version hence you lot volition operate past times mistake similar bellow.

java.lang.NoClassDefFoundError: org/openqa/selenium/browserlaunchers/Proxies

To resolve this error, you lot postulate to take "phantomjsdriver-1.1.0.jar" file from project's construct path too add together "phantomjsdriver-1.2.1.jar" file In project's construct path. Latest version volition resolve your error. Now configuration business office of PhantomJS amongst eclipse Is over. Next post volition depict you lot how to execute essay In headless browser.

More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post