jfirebaugh/konacha — pull request #134 by mykecameron (2013-05-09 19:58:50+00:00)
Title: Mc wait for events

After experiencing behavior similar to what is described in issue #98, I added a wait loop inside a timeout. It seems a little cheesy but it gets the job done. There seem to be a race condition in ` session.evaluate_script('window.top.Konacha.getEvents()')`, and the `sleep 0.1` seems inadequate in some cases.

I should note that I am currently stuck on ruby 1.9.2p320 and, as such, am behind on poltergeist and capybara (using poltergeist v1.0.2 because newer versions depend on capybara >=2.0 which in turn only supports ruby 1.9.3).