GEBテストの初心者である私は、Intellijで簡単なログインプログラムを実行しようとしています。Intellijでこのテストを実行するのを手伝ってもらえますか?私の質問は、構成の編集ページでどのような選択を行う必要があるかということです。助けてください。この例は、gebの本からのものです。
import geb.Browser
Browser.drive {
go "http://google.com/ncr"
// make sure we actually got to the page
assert title == "Google"
// enter wikipedia into the search field
$("input", name: "q").value("wikipedia")
// wait for the change to results page to happen
// (google updates the page dynamically without a new request)
waitFor { title.endsWith("Google Search") }
// is the first link to wikipedia?
def firstLink = $("li.g", 0).find("a.l")
assert firstLink.text() == "Wikipedia"
// click the link
firstLink.click()
// wait for Google's javascript to redirect to Wikipedia
waitFor { title == "Wikipedia" }
}