jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Geb
  • GEB-16

No implementation for text: attribute with siblings() method/criteria

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Blocker Blocker
  • Resolution: Unresolved
  • Affects Version/s: 0.5
  • Fix Version/s: 1.0.0
  • Component/s: Core
  • Labels:
    None
  • Environment:
    Windows and Ubuntu Linux

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

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Luke Daley
    Reporter:
    Nathan Neff
Vote (0)
Watch (0)

Dates

  • Created:
    06/Dec/10 11:57 AM
    Updated:
    11/Apr/12 2:22 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.