Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何在SeleniumWebDriver中修复初始化中的启动层_Java_Selenium_Testing_Selenium Webdriver_Automation - Fatal编程技术网

Java 如何在SeleniumWebDriver中修复初始化中的启动层

Java 如何在SeleniumWebDriver中修复初始化中的启动层,java,selenium,testing,selenium-webdriver,automation,Java,Selenium,Testing,Selenium Webdriver,Automation,我正在使用SeleniumWebDriver工具进行自动化测试。在这种情况下,每当导入safariwebdriver类和Webdriver方法时,我都会遇到一个错误。错误符号无法解析 启动层初始化期间出错 java.lang.module.ResolutionException:模块 selenium.server.standalone和okio导出包 org.openqa.selenium.safari到module net.bytebuddy 请从中插入硒的外部罐子,因为eclipse没有检

我正在使用SeleniumWebDriver工具进行自动化测试。在这种情况下,每当导入safariwebdriver类和Webdriver方法时,我都会遇到一个错误。错误符号无法解析

启动层初始化期间出错 java.lang.module.ResolutionException:模块 selenium.server.standalone和okio导出包 org.openqa.selenium.safari到module net.bytebuddy


请从中插入硒的外部罐子,因为eclipse没有检测到它,如屏幕截图所示

如果那些罐子已经存在, 当您在ModulePath中添加了外部JAR时,就会发生这种情况

解决方案:

从节点模块路径中卸下外部JAR。 选择节点类路径,然后添加外部JAR。 检查所有JAR是否位于节点类路径下。