我是新来硒的webdriver和java编程。试图解决错误的日食2018-12“的进口org.openqa.selenium.WebDriver解决不了”我现在用java 11,硒独立服务器3.141.59。请帮助。我对进口的jar文件无法以下是截图
As per Can't compile Java9 module with selenium-java as dependency it seems the Selenium packages can't be compiled with Java 9 due to split packages and till May 15, 2018 Selenium wasn't fully compatible with Java 9.
But as per this comment @Jarob22 mentioned, Selenium works just fine using Java 10. Java 9 is already eol and there's not much point adding extra stuff to try and support just it if 10 works.
But with the landing of e57914a Simon introduced us with basic JPMS support. With this availability (mhomnag/selenium-java10-reproducer@bc63889) now actually builds but you may have to Remove the WebDriverWaiter and just use a sleep for now.
As you are using java.version: '11.0.1', selenium-server-standalone-3.141.59.jar is still not compatible with Java 11. But once Java 11 ships and Buck supports it the toolchain witll be rejiged to support Java 11.
战略解决方法是将安装最新版本的JDK 8u212并执行@Tests
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句