我正在使用ScalaTest对Chrome,Firefox和Internet Explorer进行测试,例如
class LoginSpec extends FlatSpec with MustMatchers with InternetExplorer
{
val host = "http://localhost:8080/"
"The foobar home page" must "have the correct title" in
{
go to (host)
pageTitle must be("hello world")
}
}
我的依赖项:
<dependencies>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.11.8</version>
</dependency>
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.11</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.0.0-beta3</version>
</dependency>
</dependencies>
是否可以使用ScalaTest进行Microsoft Edge测试?
我可以看到org.openqa.selenium.edge.EdgeDriver
中有一个班级org.seleniumhq.selenium:selenium-java
和executable。{/ p>