Read more

Test that a form field is visible with Cucumber/Capybara

Henning Koch
January 30, 2013Software engineer at makandra GmbH

Spreewald Show archive.org snapshot now comes with a step that tests if a form field is visible:

Then the "Due date" field should be visible
But the "Author" field should not be visible
Illustration money motivation

Opscomplete powered by makandra brand

Save money by migrating from AWS to our fully managed hosting in Germany.

  • Trusted by over 100 customers
  • Ready to use with Ruby, Node.js, PHP
  • Proactive management by operations experts
Read more Show archive.org snapshot

The step works by looking up the field for the given label, then checks if that field is hidden via CSS (or Javascript).

It is not currently tested if the label is visible or hidden. For this see: Check that an element is visible or hidden via CSS with Cucumber/Capybara

Posted by Henning Koch to makandra dev (2013-01-30 10:04)