解决报错Exception in thread “main” java.lang.NoClassDefFoundError: org/openqa/selenium/HasAuthentication
网上查资料发现 是导入了不同版本的selenium包。
解决办法:文章来源:https://www.toymoban.com/news/detail-599557.html
修改pom.xml
重新下载后 selenium相关依赖包都是同个版本了
重新运行代码 ,运行通过!文章来源地址https://www.toymoban.com/news/detail-599557.html
到了这里,关于解决报错Exception in thread “main“ java.lang.NoClassDefFoundError: org/openqa/selenium/HasAuthentication的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!