Posted over 5 years ago. Visible to the public. Linked content.

How to doubleclick in Selenium

Put the attached file into features/support/.

Example usage:

Copy
When /^I open the task named "(.+?)"$/ do |task_name| task = page.all('.task').detect do |t| t.find('.label').text.downcase == task_name.downcase end task.double_click end

Note: only Selenium understands doubleclicks.\ Credits: the attached Capybara issue discussion.

Once an application no longer requires constant development, it needs periodic maintenance for stable and secure operation. makandra offers monthly maintenance contracts that let you focus on your business while we make sure the lights stay on.

Owner of this card:

Avatar
Dominik Schöler
Last edit:
2 months ago
by Besprechungs-PC
Attachments:
doubleclick.rb
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Dominik Schöler to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more