I am just starting with Geb and encountering this error when entering the example code from the Geb book:
import geb.Browser
Browser.drive {
go "http://google.com/ncr"
assert title == "Google"
$("input", name: "q").value("wikipedia")
waitFor { title.endsWith("Google Search") }
def firstLink = $("li.g", 0).find("a.l")
assert firstLink.text() == "Wikipedia"
firstLink.click()
waitFor { title == "Wikipedia" }
}
I meet this exception:
Caught: java.lang.IncompatibleClassChangeError: the number of constructors during runtime and compile time for java.lang.Exception do not match. Expected 4 but got 5
at geb.error.GebException.<init>(GebException.groovy:20)
at geb.waiting.WaitTimeoutException.<init>(WaitTimeoutException.groovy:30)
at geb.waiting.Wait.waitFor(Wait.groovy:108)
.......
Any ideas? Thank!
source
share