I have a google maps page that searches an address and then shows markers that are within 100 miles. I am trying to test that my markers have a content window that pops up when clicked on using Capybara, Selenium, and Rails.
I am receiving an error saying "Selenium::WebDriver::Error::ElementNotInteractableError: Element could not be scrolled into view" Does anyone know how to fix this or a better way to test the pop up content window for google map markers? Scrolling doesn't work in Google Maps, so I am assuming that's why this is occurring.
it 'enters in an address for IN Adjusters', js: true do
visit '/maps'
fill_in 'address', with: '4511 W 200 S'
click_button('Search')
sleep(5)
element = find('map#gmimap0')
element.click
expect(page).to have_content("Burke Eric")
end