Click overlay marker in Google Maps with capybara-webkit April 11, 2024 by Tarik To test that there are n markers on the page: expect(find('.gmap_container')['data-markers'].split('},{').count).to eq(n)