Click overlay marker in Google Maps with capybara-webkit

后端 未结 2 1649
梦毁少年i
梦毁少年i 2021-02-18 14:11

Is there a way to click a Google Maps overlay with capybara-webkit? What about Capybara using Selenium? I want to test the content of the info window once the marker is selected

2条回答
  •  醉酒成梦
    2021-02-18 14:16

    To test that there are n markers on the page:

    expect(find('.gmap_container')['data-markers'].split('},{').count).to eq(n)
    

提交回复
热议问题