title: How do you find a specific tag based on parents in capybara and rspec?
body: <p>Currently I have two tests that each individually test for a button_click within a form on the same page with no <code>id</code>s but both have the same text <code>Go</code>.  So what is happens is capybara/rspec only tests the first instance of the <code>Go</code> button for <b>both</b> tests.   Is there a way to find something based on the parents? I don't want to have to modify my functional code by adding an id just for the sole purpose of testing.  I was thinking of something like <code>test_form &gt; input[type='submit']</code> but that doesn't work. </p>
  
  <p>Current code:</p>
  
  <pre><code>let(:submit) {"Go"}
  
  describe "with valid information" do
    before do
      fill_in "email",        with: "stuff@example.com"
      fill_in "password",     with: "stuff"
    end
  
    it "should create a user" do
      expect {click_button submit}.to change(User, :count).by(1)
    end
  end
  </code></pre>
  
  <p>Current Gems:</p>
  
  <pre><code>rails 3.2.6
  rspec-rails 2.10.1
  capybara 1.1.2
  </code></pre>