jonleighton/poltergeist — Issue #8: click_link and click_button just do nothing
Author: fschwahn
Created: 2012-01-10 15:19:13+00:00
State: open

Hi,
I'm currently trying out poltergeist, but I can't seem to get it to work correctly. I just used it to run a few request specs which pass when using the standard `:rack_test`-driver, but all of these scenarios failed. It seems that `click_link` and `click_button` don't work. After calling `click_link` the site just does not change. The debug-trace is as follows:

```
{"name"=>"visit", "args"=>["http://127.0.0.1:57696/"]}
{"response"=>"success"}
{"name"=>"find", "args"=>[".//a[./@href][(((./@id = 'Anmelden' or normalize-space(string(.)) = 'Anmelden') or ./@title = 'Anmelden') or .//img[./@alt = 'Anmelden'])]", nil]}
{"response"=>[0]}
{"name"=>"visible", "args"=>[0]}
{"response"=>true}
{"name"=>"click", "args"=>[0]}
{"response"=>true}
```

However, `fill_in` for example works just fine.

I also cloned the poltergeist repository and ran the tests. I have 15 failures, all of them have to do with `Capybara::Session`. I don't know if this is related to this issue in any way.

My environment is the following:

Mac OS X 10.6.8
PhantomJS 1.4.1 (installed the pre-built static binary)
poltergeist (0.2.0)
capybara (1.1.2)

Thanks!