无法使用 maven 在 Eclipse 中安装Selenium"模块无法访问"



我试图在eclipse中安装selenium 4库与maven在现有的模块化项目,但是,我有一个错误后,把硒java依赖
所有错误都是这样的:

The type org.openqa.selenium.By is not accessible即使在模块信息文件中添加它们
一些硒模块有这个错误:
org.openqa.selenium.chrome cannot be resolved to a module
我有这个问题只是与硒依赖其他库工作良好。
我试图手动安装它,但我得到了同样的错误。
这是项目层次

尝试以下步骤:

-要么只保留selenium-server-standalone-3.141.59.jar作为外部JAR-只保留selenium-java-3.141.59-清理项目并更新maven

你可以通过maven更新这些版本。

最新更新