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

Comments

Projects
None yet
1 participant
@BillyRayPreachersSon
Copy link

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

This comment has been minimized.

Copy link
Author

BillyRayPreachersSon commented May 17, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.