-
Notifications
You must be signed in to change notification settings - Fork 415
autocomplete can't be tested #439
Comments
I've determined that autocomplete is indeed firing, and is returning a result. However, when debugging via Poltergeist I find that Poltergeist is timing out while waiting for the autocomplete result HTML to generate. |
I got this working once, using key events to simulate someone typing.. if you just set the value, the events don't fire and the autocomplete doesn't show.. (at least in my case) |
element.native.send_keys worked for me |
+1 for native.send_keys. Using twitter's typeahead.js |
I think |
hmm send_keys didn't work for me, anyone have example code? |
This is working for me, with both poltergeist/phantomjs and selenium/firefox...
phantomjs 1.9.7, poltergeist 1.5.1 |
I'm also unable to make it work with UP: It's actually working, sorry. Didn't work during I was in the pry session, worked after I've left the debugger |
@mmrwoods thanks for this solution, it works nicely. |
I realize that there are some open issues around this, but while some people have claimed to have solved this, I have found it to be impossible. My assertions for the presence of the jQuery autocomplete fields always fail, regardless of what events I trigger. Even calling the autocomplete field manually generates nothing. The code works flawlessly when tested in the browser.
After 40 hours straight of trying to troubleshoot this one line, I am wondering if anyone else has overcome the issue of Poltergeist not being able to test the jQuery UI autocomplete.
The text was updated successfully, but these errors were encountered: