java.lang.NoClassDefFoundError: org/openqa/selenium/internal/Locatable

maven项目:java.lang.NoClassDefFoundError: org/openqa/selenium/internal/Locatable

 

 

解决方法:pom.xml文件添加或修改如下内容:

        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <version>3.9.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-api</artifactId>
            <version>3.9.1</version>
            <scope>test</scope>
        </dependency>

参考来源:
https://github.com/serenity-bdd/serenity-core/issues/1144

 

 

 
posted @ 2022-03-24 01:11  bky2020bky  阅读(535)  评论(0编辑  收藏  举报