Skip to content

Instantly share code, notes, and snippets.

@almirage
Created November 19, 2014 16:34
Show Gist options
  • Save almirage/740169b5ae2de5ed377b to your computer and use it in GitHub Desktop.
Save almirage/740169b5ae2de5ed377b to your computer and use it in GitHub Desktop.
package almirage
import org.scalatest.selenium._
import org.scalatest._
import selenium._
import org.openqa.selenium._
import htmlunit._
class IntegrationSpec extends FlatSpec with ShouldMatchers with WebBrowser {
implicit val webDriver: WebDriver = new HtmlUnitDriver
val host = "http://localhost:9000/"
"The blog app home page" should "have the correct title" in {
go to (host + "index.html")
pageTitle should be ("Awesome Blog")
}
}
@gakuzzzz
Copy link

scalaVersion := "2.11.4"

libraryDependencies ++= Seq(
  "org.scalatest" % "scalatest_2.11" % "2.2.1" % "test",
  "org.seleniumhq.selenium" % "selenium-java" % "2.35.0" % "test"
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment