title: Capybara unable to find input tag CSS element
body: <p>I'm trying to use capybara to find a CSS element but RSpec keeps returning unable to find element. I tried with id, class, and name.</p>
  
  <p>HTML (using inspect element)</p>
  
  <pre><code>&lt;input class="new_photo_upload_entry" type="file" name="photo_upload_entry[upload]" id="photo_upload_entry_upload"&gt;
  </code></pre>
  
  <p>steps.rb file</p>
  
  <pre><code>expect(page).to have_css('#photo_upload_entry_upload')
  expect(page).to have_css('.new_photo_upload_entry')
  expect(page).to have_css('input[name="photo_upload_entry[upload]"]')
  </code></pre>
  
  <p>Running cucumber feature result:</p>
  
  <pre><code>expected to find css "#photo_upload_entry_upload" but there were no matches. Also found "", which matched the selector but not all filters. (RSpec::Expectations::ExpectationNotMetError)
  
  expected to find css ".new_photo_upload_entry" but there were no matches (RSpec::Expectations::ExpectationNotMetError)
  
  expected to find css "input[name=\"photo_upload_entry[upload]\"]" but there were no matches. Also found "", which matched the selector but not all filters. (RSpec::Expectations::ExpectationNotMetError)
  </code></pre>