Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4327206
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:30:18+00:00 2026-05-21T09:30:18+00:00

I am starting with Cucumber and I am running this simple scenario: Scenario: Creating

  • 0

I am starting with Cucumber and I am running this simple scenario:

Scenario: Creating a project
  Given I go to the new project page
  And I fill in "Name"  with "xxx"
  ...

The new project form is already in place and looks like this:

<% form_for (@project) do |f| %>
  <%= f.text_field :name %>
  ...
<% end %>

As you can see I haven’t defined a label (don’t need one). The problem is that cucumber doesn’t find the field:

Given I go to the new project page
And I fill in “Name” with “I need something” #
features/step_definitions/web_steps.rb:68
cannot fill in, no text field, text area or password field with id,
name, or label ‘Name’ found
(Capybara::ElementNotFound)

However it finds it if I add the label. I find it a little bit suspicious that it can’t match the name I gave with the appropriate text field.

What is wrong?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T09:30:19+00:00Added an answer on May 21, 2026 at 9:30 am

    The name of your textfield is by default:

    project[name] 
    

    Actually it follows the rule:

    object[field]
    

    You should look at your dom and check it.

    Edit:

    Jus FYI, It’s weird to see:

    <% form_for (@project) do |f| %>
    

    instead of:

    <%= form_for (@project) do |f| %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Starting a new project and would like to use one of the MVC framworks.
Starting a new project and redefining the logging utilities. With the popularity of Log4J
Starting a new project in Xcode 4 - what's the best way to make
I am starting to use cucumber for high level testing. I have this defined
Starting a new question from this thread, Can anyone answer why a ComboBox with
starting a new project and want to try using the storyboard feature of xcode
Starting with 2005, VS started this behavior of when starting debugging session it spawns
Starting with the error: Error 81 The OutputPath property is not set for this
Starting recently, some of my new web pages (XHTML 1.1) are setup to do
I'm starting learning rails, and having some troubles on configure cucumber to run my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.