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 UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
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)