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.

Does your version of Ruby on Rails still receive security updates?
Rails LTS provides security patches for old versions of Ruby on Rails (3.2 and 2.3).

Owner of this card:

Avatar
Dominik Schöler
Last edit:
5 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