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") }
とにかくもっと手軽に動かして日常的に使いたい
#!/usr/bin/env alpaca visit("http://www.pixiv.net") fill("#user", $USER) fill("#pass", $PASSWORD) submit()
def login(user, name) { ... } var user = "tototoshi" var password = "scalachankawaii" login(user, password)
require "util.alpaca"
print $(date +%Y%m%d)
print "Hello"
case class Print(msg: Hello)
case Print(msg) => println(msg)