Details
Description
Both assertions in the code below will fail with the following error:
Caught: geb.error.DriveException: null
at geb.Browser.doDrive(Browser.groovy:197)
at geb.Browser.drive(Browser.groovy:173)
at simpleTest.run(simpleTest.groovy:8)
@Grapes([
@Grab("org.codehaus.geb:geb-core:latest.release"),
@Grab("org.seleniumhq.selenium:selenium-firefox-driver:latest.release")
])
import geb.Browser
Browser.drive("http://enrollio.org") {
// Trying to assert that this HTML exists:
// <h3 class="reallynow">Whatever</h3><p>Version 0.2 Dangle</p>
assert $("h3.reallynow").siblings("p", text: ~/Dangle/).size() == 1
// Luke's suggestion
assert $("h3.reallynow").siblings("p").filter(text: ~/Dangle/).size() == 1
}
The documentation does not specifically mention that siblings() method will
take a "text" specification, but Luke said to file a bug if his suggestion above didn't work.
http://bamboo.ci.codehaus.org/browse/GEB-MASTERDEFAULTS/latest/artifact/Manual/navigator.html#traversing
http://markmail.org/thread/ojsgw3px6ubzipel