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

app.injector is not a function (Selenium::WebDriver::Error::JavascriptError) #4

Open
wiemann opened this issue Nov 7, 2013 · 4 comments

Comments

@wiemann
Copy link

wiemann commented Nov 7, 2013

I am receiving the error

app.injector is not a function (Selenium::WebDriver::Error::JavascriptError)

in Angular 1.1.4 and jQuery 2.0.2. Any Idea what might cause this?

@mackwic
Copy link

mackwic commented Nov 8, 2013

Are you sure you used 'ng-app' somewhere in your body ?

mackwic pushed a commit to mackwic/capybara-angular that referenced this issue Nov 8, 2013
Add lookup for attributes derivated of ng-app: data-ng-app and x-ng-app.
mackwic pushed a commit to mackwic/capybara-angular that referenced this issue Nov 8, 2013
@mackwic
Copy link

mackwic commented Nov 8, 2013

I made an update that also check for data-ng-app and x-ng-app (if that was your problem). Tell me if that fixes things.

Side note: I need this for HTML-friendly apps so this in an obligatory patch for my use case.

@wiemann
Copy link
Author

wiemann commented Nov 8, 2013

@mackwic actually the ng-app attribute is used in my app, so $('*[ng-app]') properly returns it. What fails is the injection after selecting the element with jQuery.

@Ahimgit
Copy link

Ahimgit commented Dec 19, 2015

this one is probably caused by removal of angular(document).ready since 0.1.1
https://github.com/wrozka/capybara-angular/blob/v0.1.1/lib/capybara/angular/waiter.rb#L51

baab0c3#diff-d408cea9ad24e4a12183b222790d77b5

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

3 participants