Click overlay marker in Google Maps with capybara-webkit
To test that there are n markers on the page: expect(find(‘.gmap_container’)[‘data-markers’].split(‘},{‘).count).to eq(n)
To test that there are n markers on the page: expect(find(‘.gmap_container’)[‘data-markers’].split(‘},{‘).count).to eq(n)
I had the exact issue yesterday. Capybara was automatically ignoring the input due to it being invisible. I solved it with the following: find(‘#agreement’, :visible => false).click You can also add the following to env.rb to enable Capybara to interact with all hidden elements: Capybara.ignore_hidden_elements = false
If you are in Ubuntu do sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui If you are on Mac brew install qt and then gem install capybara-webkit -v ‘0.11.0’