java.lang.NoSuchMethodError: org.openqa.selenium.os.CommandLine.find (Ljava / lang / String;) Ljava / lang / String; mientras usa PhantomJS 2.1.1 con Selenium
SO: Windows 7
Versión PhantomJS - 2.1.1
Selenium - 3.8.1 (servidor de selenio).
JDK - 152.
Estoy tratando de ejecutar una prueba simple, usando PhantomJS:
1) inicializando el controlador:
System.setProperty("phantomjs.binary.path","src\\main\\resources\\phantomjs.exe");
WebDriver driver = new PhantomJSDriver();
2) cualquier prueba, que sea texto de verificación "bienvenido" en es.wikipedia.org:
driver.get("http://en.wikipedia.org");
System.out.println(driver.findElement(By.xpath("//div[contains(text(),'Welcome')]")).isDisplayed());
3) Ejecutando prueba, pero recibiendo errores:
Exception in thread "main" java.lang.NoSuchMethodError: org.openqa.selenium.os.CommandLine.find(Ljava/lang/String;)Ljava/lang/String;
at org.openqa.selenium.phantomjs.PhantomJSDriverService.findPhantomJS(PhantomJSDriverService.java:232)
at org.openqa.selenium.phantomjs.PhantomJSDriverService.createDefaultService(PhantomJSDriverService.java:181)
at org.openqa.selenium.phantomjs.PhantomJSDriver.<init>(PhantomJSDriver.java:104)
at org.openqa.selenium.phantomjs.PhantomJSDriver.<init>(PhantomJSDriver.java:94)
Google mostró que tales problemas ocurren de vez en cuando (selenio no compatible / PhantomJS). Pregunta: ¿hay alguna solución para hacer los últimos selenio (s) y 2.1.1 PhantomJS buenos amigos?
nota: cualquier otro controlador funciona bien (edge, chrome, ff).