Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geb .closest() method doesn't support CSS attribute selectors #437

Closed
BillyRayPreachersSon opened this issue May 17, 2016 · 1 comment
Closed
Milestone

Comments

@BillyRayPreachersSon
Copy link

@BillyRayPreachersSon BillyRayPreachersSon commented May 17, 2016

Given the following markup:

<div someAttr="foo">
    <div someAttr="bar">
        <h1>A title</h1>
    </div>
</div>

Given the following content, I would expect "fooEl" to find me the first div element :

title { $('h1') }
fooEl { title.closest('[someAttr="foo"]') }

However, it returns nothing. Changing the attribute selector into a map does work, so the element is definitely present.

@BillyRayPreachersSon BillyRayPreachersSon changed the title .closest() method doesn't support CSS attribute selectors Geb .closest() method doesn't support CSS attribute selectors May 17, 2016
@BillyRayPreachersSon
Copy link
Author

@BillyRayPreachersSon BillyRayPreachersSon commented May 17, 2016

It also fails when attempting to select child elements using CSS attribute selectors via the .children() method.

@erdi erdi closed this in 57081c8 Aug 1, 2016
@erdi erdi added this to the 1.0 milestone May 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants