Read more

Versatile Cucumber step regarding hovering above elements

Dominik Schöler
March 25, 2015Software engineer at makandra GmbH

Here's a pretty useful steps that hasn't made it into Spreewald yet.

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

It is best used with the auto-mapper for BEM classes in features/support/selectors.rb

When I hover above [selector] element

When /^I hover above (.*) element$/ do |selector|
  page.find(selector_for(selector)).hover
end

Example:

When I hover above the album's image element

→ triggers a hover event on .album--image

Posted by Dominik Schöler to makandra dev (2015-03-25 16:54)