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`