How can I resolve my class from a different jar with same structure like another
Note : Though the jars in question contains the word
even i had the same issue. try the below code. It worked for me;
WebDriver driver;
File src = new File("//PATH");
System.setProperty("phantomjs.binary.path", src.getAbsolutePath());
DesiredCapabilities caps = new DesiredCapabilities();
caps.setJavascriptEnabled(true);
caps.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
driver = new PhantomJSDriver(caps);
driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);
caps = new DesiredCapabilities();
caps.setJavascriptEnabled(true);
caps.setCapability(PhantomJSDriverService.PHANTOMJS_CLI_ARGS,
new String[] { "--web-security=no", "--ignore-ssl-errors=yes" });
driver = new PhantomJSDriver(caps);
driver.get("URL");