Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double Click und Right Click #172

Closed
pschyska opened this Issue Oct 27, 2010 · 5 comments

Comments

Projects
None yet
3 participants
@pschyska
Copy link

commented Oct 27, 2010

I'm using Selenium-WebDriver.
I tried to double-click with two calls to click(), but that didn't work (Ext JS Framework). Manually double clicking in Firefox works though.
Also i need a way to right click stuff - I didn't find anything in the docs.

@jnicklas

This comment has been minimized.

Copy link
Collaborator

commented Oct 27, 2010

Capybara doesn't expose that functionality. Unfortunately, just scanning the selenium docs quickly it doesn't look like they expose this either. Culerity/celerity do have right and double click options. I think you should start by looking into if selenium supports this, and if not if they'll ever add it.

@jnicklas

This comment has been minimized.

Copy link
Collaborator

commented Nov 9, 2010

Closing this for now. If someone wants this, please send a pull request that works at least in Selenium and Celerity.

@kippr

This comment has been minimized.

Copy link

commented May 10, 2013

FYI Selenium does now support double clicks. I have a monkey patch that I use:

module Capybara
    module Node
        class Element
            def double_click
                session.driver.browser.mouse.double_click(self.native)
            end
        end
    end
end
@ghost

This comment has been minimized.

Copy link

commented Oct 18, 2013

Hi all,
could someone please tell me whether is there right-click already available in selenium/capybara?

@ghost

This comment has been minimized.

Copy link

commented Oct 22, 2013

Hi Guys,
this one works for me:

module Capybara
  module Node
    class Element
      def context_click
        @session.driver.browser.action.context_click(self.native).perform
      end
    end
  end
end

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.