-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
.click() not working. #142
Comments
Ok, this has nothing to do with nightmare but is an incarnation of this phantomjs phenomenon: [https://github.com/ariya/phantomjs/issues/10375], previously [https://code.google.com/p/phantomjs/issues/detail?id=375], most recently [https://github.com/Modernizr/Modernizr/issues/1344]. |
Hit by the same issue. Have you found a fix for that? |
Have you tried using PhantomJS 2.0? The list expands ok for me. |
Stuck on 1.9.x for the time being. Found a workaround by using |
For me, it was an app that would not register for the click events after registering for touch. @RainerAtSpirit: If it really is the same issue, you could do one of the following:
It appears you resorted to (3). The other approaches might feel less hacky for you, especially (1). @johntitus Haven't tried 2.0 yet, I'll give it a shot. The above example was fixed in the original app for me though and now also works w/ 1.9. |
I tried to reduce the issue I'm having to this minimal example with a public site:
I'm drawing a blank as to why this doesn't work, I even tried to trigger the click with
jQuery('...').trigger('click')
, which works in Chrome, but not in nightmare. Triggering with jQuery inside of a nightmare.evaluate(...)
does not work either. Here is the debug output from running the above example:The screenshots are just a help figuring out that the list does not expand, when checking the DOM in
.evaluate()
-calls directly, I see that no additional nodes in the list become visible.The text was updated successfully, but these errors were encountered: