0

Environment : Selenium version 3.6 phantom Js : 1.2.1 TestNG

Code : i have written a very simple code just

File file = new File("D:\\study material\\Selenium Final complete\\Phantom_driver\\phantomjs-2.1.1-windows\\bin\\phantomjs.exe"); 
System.setProperty("phantomjs.binary.path", file.getAbsolutePath());
PhantomJSDriverdriver = newPhantomJSDriver();`

Error : But i am getting error

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

1 Answer 1

4

Upgrade your phantomjsdriver to 1.3.0 version. This should solve your problem, as stated here.

I hope this helps.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Dalton, now its working with version 1.3.0 :) but not with the version 1.4 or any other.... so its helpful for me.....

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.