使用下面的代码(取自http://www.scalatest.org/user_guide/using_selenium)
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.selenium.WebBrowser
import org.scalatest.FlatSpec
class BlogSpec extends FlatSpec with ShouldMatchers with WebBrowser {
implicit val webDriver: WebDriver = new HtmlUnitDriver
"The blog app home page" should "have the correct title" in {
go to (host + "index.html")
title should be ("Awesome Blog")
}
}
我收到错误
Multiple markers at this line
- not found: type HtmlUnitDriver
- not found: type WebDriver
HtmlUnitDriver 和 WebDriver 库不是 scalatest 安装的一部分,我可以从哪里导入它们?