title: Unable to find field "player_1_name" that is not disabled
body: <p>I just started this code by a walkthrough that I've been given. And my feature test should work but it gives me this error:</p>
  
  <h1><code>Unable to find field "player_1_name" that is not disabled</code></h1>
  
  <p>I have tried changing the quotes, the path, using [], and still giving me the same error.</p>
  
  <ul>
  <li>My ruby version.
  ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]</li>
  <li>Also, I am using shotgun, sinatra, apart from Rspec and capybara.
  In the code below I'll specify which file are each code.</li>
  </ul>
  
  <pre><code>#features/entre_names_spec.rp
  
  feature "Enter names" do
    scenario "submitting names" do
      visit('/')
      fill_in "player_1_name", with: 'Dave'
      fill_in "player_2_name", with: 'Mittens'
      click_button 'Submit'
      expect(page).to have_content 'Dave vs. Mittens'
    end
  end
  </code></pre>
  
  <pre><code>#app.rb
  require 'sinatra/base'
  
  class Battle &lt; Sinatra::Base
    get '/' do
      'Testing infrastructure working!'
    end
  
    get '/' do
      erb :index
    end
  
    post '/names' do
      @player_1_name = params[:player_1_name]
      @player_2_name = params[:player_2_name]
      erb :play
    end
  
    # start the server if ruby file executed directly
    run! if app_file == $0
  end
  </code></pre>
  
  <pre><code>views/index.erb
  &lt;form action= "names" method= "post"&gt;
    &lt;input type= "text" name= "player_1_name"&gt;
    &lt;input type= "text" name= "player_2_name"&gt;
    &lt;input type= "submit" value= "Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <pre><code>#views/play.erb
  &lt;%= @player_1_name %&gt; vs. &lt;% @player_2_name %&gt;
  </code></pre>
  
  <pre><code>Failures:
  
    1) Enter names submitting names
       Failure/Error: fill_in "player_1_name", with: "Dave"
  
       Capybara::ElementNotFound:
         Unable to find field "player_1_name" that is not disabled
       # /Users/student/.rvm/gems/ruby-2.6.3/gems/capybara-3.28.0/lib/capybara/node/finders.rb:296:in `block in synced_resolve'
       # /Users/student/.rvm/gems/ruby-2.6.3/gems/capybara-3.28.0/lib/capybara/node/base.rb:83:in `synchronize'
       # /Users/student/.rvm/gems/ruby-2.6.3/gems/capybara-3.28.0/lib/capybara/node/finders.rb:287:in `synced_resolve'
       # /Users/student/.rvm/gems/ruby-2.6.3/gems/capybara-3.28.0/lib/capybara/node/finders.rb:52:in `find'
       # /Users/student/.rvm/gems/ruby-2.6.3/gems/capybara-3.28.0/lib/capybara/node/actions.rb:91:in `fill_in'
       # /Users/student/.rvm/gems/ruby-2.6.3/gems/capybara-3.28.0/lib/capybara/session.rb:749:in `block (2 levels) in &lt;class:Session&gt;'
       # /Users/student/.rvm/gems/ruby-2.6.3/gems/capybara-3.28.0/lib/capybara/dsl.rb:51:in `block (2 levels) in &lt;module:DSL&gt;'
       # ./spec/features/enter_names_spec.rb:4:in `block (2 levels) in &lt;top (required)&gt;'
  
  Finished in 0.07645 seconds (files took 0.94706 seconds to load)
  2 examples, 1 failure
  
  Failed examples:
  
  rspec ./spec/features/enter_names_spec.rb:2 # Enter names submitting names
  </code></pre>