View
Posted over 8 years ago by Henning Koch.

When your Cucumber feature needs to browse the page HTML, and you are not sure how to express your query...

Posted about 2 years ago by Emanuel De.

We often use the Then console step from spreewald in combination with geordi vnc from geordi to debug tests within...

Posted over 5 years ago by Dominik Schöler. makandracards.com

This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. Firefox will not...

Posted about 2 years ago by Henning Koch. makandracards.com

In Spreewald 1.10.4+, nested patiently blocks are now patient. Here is an example: patiently do outer_code patiently do

Posted over 8 years ago by Dominik Schöler.

Hint: There's another card with this helper for Cucumber features. Sometimes you feel like you need to stub some...

Posted about 2 years ago by Arne Hartherz. w3c.github.io

Here is how to use Chromedriver without libraries like selenium-webdriver. This can be useful for debugging. The following example...

Posted about 2 years ago by Arne Hartherz.

When you have a pending Cucumber step (or feature) that also uses an existing VCR cassette, your pending test may...

Posted about 2 years ago by Emanuel De.

This cucumber step is useful for testing an image (looking at the src of the image). Then(/^I should see...

Posted over 2 years ago by Henning Koch.

This is painful. Consider using Microsoft Office or switching careers. If you need to write < 20 letters consider doing it...

Posted about 9 years ago by Henning Koch.

If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...

Posted over 2 years ago by Dominik Schöler. blog.bigbinary.com

This error is raised because your old database does not have a configured environment yet, which Rails 5 enforces.

Posted over 8 years ago by Henning Koch.

When your Cucumber feature seems to forget cookies / sessions when you run it with Selenium or capybara-webkit, check if...

Posted over 2 years ago by Emanuel De.

Summary: Don't add chromedriver-helper to the Gemfile the executables might break your tests in projects where chromedriver-helper...

Posted over 2 years ago by Dominik Schöler. relishapp.com

In most projects I know, Cucumber test suite speed is not an issue. Of course, running 350 features takes its...

Posted over 2 years ago by Dominik Schöler. github.com

When you're using Sidekiq::Web to monitor the Sidekiq status AND have your session cookie configured to a wildcard...

Posted about 5 years ago by Thomas Klemm.

capybara_element['attribute_name'] allows accessing an element's attributes in Capybara. A few examples: find('#my_element')['class']

Posted over 2 years ago by Florian Heinle.

We're usually running Ubuntu LTS versions. Sometimes newer hardware requires packages from more recent Ubuntu releases that only come...

Posted about 7 years ago by Arne Hartherz.

If you open a pop-up window [1] in your Selenium tests and you want to close it, you can...

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