jonleighton/poltergeist — pull request #152 by botandrose (2012-09-12 23:40:16+00:00)
Title: add Browser.clickCoordinates(x, y) to click a specific position on the screen

First, thanks for poltergeist; it's a huge step up from everything that came before!

So, I recently needed to click a very specific part of the screen to test an interface where one can add markers to an image by clicking on it. After digging around a bit in poltergeist and phantom.js sources, it didn't seem like I could do this without modifying poltergeist directly... not even in a monkeypatch kind of way. Furthermore, it seems like this could be useful for more folks in the future, so Pull Request!

So here's what I added. I'm calling it like so: `page.driver.browser.command 'clickCoordinates', x, y`

I'm guessing this could use some work before its ready to merge, but I figured I'd get the conversation started. What do you think?