capybara icon indicating copy to clipboard operation
capybara copied to clipboard

I'm missing a double click action

Open saimonmoore opened this issue 16 years ago • 6 comments

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

saimonmoore avatar Mar 05 '10 17:03 saimonmoore

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".

jnicklas avatar Mar 05 '10 20:03 jnicklas

Fine...I'll provide a patch...

saimonmoore avatar Mar 05 '10 20:03 saimonmoore

Maybe i can help you with this cos i'm recently seeing this quite more often!

denro avatar Mar 11 '10 14:03 denro

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.

saimonmoore avatar Mar 11 '10 14:03 saimonmoore

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

denro avatar Mar 11 '10 15:03 denro

I'd like to see this feature…if anyone has pursued it.

miwillhite avatar Apr 14 '10 02:04 miwillhite