I'm missing a double click action
I know that selenium can do double clicks but it's missing from capybara. I tried to hack my way around it: selenium-webdriver: selenium/webdriver/firefox/bridge.rb
def doubleClickElement(element) execute :doubleClick,:element_id => element end
then in my steps :
def raw_bridge page.driver.browser.bridge end
raw_bridge.doubleClickElement('new-post')
But I'm getting: Unrecognised command: doubleClick (Selenium::WebDriver::Error::WebDriverError)
My web app uses double clicks a lot so I need to find a way to do this.
Regards,
Saimon
Seems like too much of an edge case to me. If you can provide a well tested patch I'll merge it, but I don't think I'll be able to devote any time to this at the moment. Closing this as "won't fix".
Fine...I'll provide a patch...
Maybe i can help you with this cos i'm recently seeing this quite more often!
I worked around it by executing some custom js (currently ff specific). In any case double-click is also missing from selenium-webdriver so until that's there there's not much that can be done unless we use custom js. If you have another solution I'd love to hear it though.
yeah that is how i've had to solved before, ill look into it (again) to see if there is something that will do the job
I'd like to see this feature…if anyone has pursued it.