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 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

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)