thoughtbot / capybara-webkit

A Capybara driver for headless WebKit to test JavaScript web apps
https://thoughtbot.com/open-source
MIT License
1.97k stars 428 forks source link

Drag_to with google maps markers #973

Closed Xosmond closed 7 years ago

Xosmond commented 7 years ago

I have a model that need user to move the marker to get the coordinates of a location. Does exists some way that capybara-webkit can do it? I have tried with drag_to but doesn't work, on the screenshot the marker does not appear so i dont know.

By now i just executing some javascript to set the coordinates directly.

twalpole commented 7 years ago

What exactly have you tried using drag_to, what does "doesn't work" mean? What does the HTML look like?

Xosmond commented 7 years ago

The html render the map but the marker doesn't appear on the map so i can't drag it. Also i couldn't figure out how to select the maker because marker properties depend of the window that renders it.

I have tried to print error messages but there are not error messages.

twalpole commented 7 years ago

@Xosmond Without an example and specific code that you're trying to use no one is going to be able to answer this.