2.0b1 和 Maven

如果您使用 Maven 和 Selenium 的 2.0b1 版本,您可能会遇到一些问题,导致 Maven 无法识别您的测试。

如果您使用 Maven 和 Selenium 的 2.0b1 版本,您可能会遇到一些问题,导致 Maven 无法识别您的测试。根本问题在于 Selenium 包含对 JUnit 和 TestNG 的支持类。解决方案是将以下内容添加到您的 pom.xml 中

<dependency>
  <groupId>org.seleniumhq.selenium</groupId>
  <artifactId>selenium</artifactId>
  <version>2.0b1</version>
  <exclusions>
    <exclusion>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
    </exclusion>
  </exclusions>
</dependency>
上次修改时间为 2021 年 8 月 7 日:重命名目录 (e9895f27c26)