[英]the import org.openqa.selenium.webdriver cannot be resolved
Try to Clean the project by using Menu -> Project -> Clean Cross check if selenium server jars file are added under Build path -> configure build path -> java build path -> library.尝试使用菜单 -> 项目 -> 清理交叉检查 selenium 服务器 jars 文件是否已添加到构建路径 -> 配置构建路径 -> java 构建路径 -> 库下来清理项目。
You can also refer - https://www.selenium.dev/docs/site/en/selenium_installation/ Note - seleniumhq.org is now selenium.dev您也可以参考 - https://www.selenium.dev/docs/site/en/selenium_installation/注意 - seleniumhq.org 现在是 Z8E00596AD8DE2213FF8CZF8D8478D5362
Either keep only selenium-server-standalone-3.141.要么只保留 selenium-server-standalone-3.141。 jar as an external JAR. jar 作为外部 JAR。 Or keep only selenium-java-3.141 Remove all the other Selenium Java Client JARs.或者只保留 selenium-java-3.141 删除所有其他 Selenium Java 客户端 JARs。 Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.通过您的 IDE 清理您的项目工作区,并仅使用所需的依赖项重建您的项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.