View
Posted over 7 years ago by Arne Hartherz.

Applications often show or hide elements based on viewport dimensions, or may have components that behave differently (like mobile vs...

Posted 6 months ago by Arne Hartherz.

When using Chrome for Selenium tests, the chromedriver binary will be used to control Chrome. To debug problems that stem...

Posted over 4 years ago by Henning Koch.

Spreewald comes with a selector_for helper that matches an English term like the user's profile into a CSS...

Posted over 2 years ago by Daniel Straßner.

When you want to group rails models of a logical context, namespaces are your friend. However, if you have a...

Posted 7 months ago by Dominik Schöler.

CSS transitions are a simple animation framework that is built right into browsers. No need for Javascript here. They're...

Posted over 7 years ago by Henning Koch.

Selenium cannot reliably control a browser when its window is not in focus, or when you accidentally interact with the...

Posted over 7 years ago by Arne Hartherz.

Around will not happen until after a feature's Background has been processed. Use Before and After to avoid that...

Posted over 2 years ago by Arne Hartherz.

When localizing model attributes via I18n you may run into errors like this: I18n::InvalidPluralizationData: translation data {...

...} can not be...

Posted 9 months ago by Tobias Kraze.

webpack is a very powerful asset bundler written in node.js to bundle (ES6) JavaScript modules, stylesheets, images, and other assets...

Posted over 7 years ago by Henning Koch.

In a nutshell: Do not use evaluate_script. Use execute_script instead! Capybara gives you two different methods for executing...

Posted 9 months ago by Dominik Schöler.

Element finding is a central feature of Capybara. Since #find is normally used to get elements from the current page...

Posted 9 months ago by Tobias Kraze.

The goal is to get Jasmine specs running in a Rails project using Webpacker, with the browser based test runner...

Posted 9 months ago by Stefan Wagner.

If your Ruby project includes a gem like Spreewald that comes with some external step definition, RubyMine does not know...

Posted over 2 years ago by Henning Koch.

Capybara clears cookies before each scenario, but not other client-side data stores. If your app is using localStorage or...

Posted 10 months ago by Michael Leimstädtner.

Cucumber up to version 2 had a neat feature called Step Argument Transforms which was dropped in favor of Cucumber...

Posted almost 3 years ago by Dominik Schöler.

Sass lets you easily specify multiple selectors at once like this: .some-block &.has-hover, &:hover outline: 1px solid red...

Posted 10 months ago by Michael Leimstädtner.

Until Capybara 2, node finders that accept a text option were able to find nodes based on rendered text, even...

Posted 11 months ago by Emanuel De.

Below you can find two methods how to test file downloads with Selenium and Capybara. Both have different advantages and...

This website uses cookies to improve usability and analyze traffic.
Accept or learn more