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

Direct child doesn't work in selector #135

Closed
alexlafroscia opened this issue Feb 9, 2015 · 1 comment
Closed

Direct child doesn't work in selector #135

alexlafroscia opened this issue Feb 9, 2015 · 1 comment

Comments

@alexlafroscia
Copy link
Contributor

I'm trying to target an element to click with the following jQuery selector:

form > .ember-view:nth-of-type(2) .form-group .list-inline button:first-of-type

(I know it's gross, but it is what it is).

Something about the direct child selector (>) is causing the tests to throw this error:

Uncaught TypeError: Cannot read property 'lookup' of undefined

If I remove the > from the selector, the error isn't thrown, so I think that must be the issue.

If I use Ember.$() from within the browser, it finds the element properly. Is > not supported? Is there a known workaround?

@alexlafroscia alexlafroscia changed the title Direct child doesn't work with selector Direct child doesn't work in selector Feb 9, 2015
@alexlafroscia
Copy link
Contributor Author

Sorry, looks like the issue came from elsewhere in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant