title: How to click a link within a hidden div via capybara
body: <p>I am using capybara, rspec, and poltergeist in a Rails 4 application and am trying to click on the following link button via capybara.</p>
  
  <pre><code>&lt;div class="form-group"&gt;
    &lt;input id="invoice_invoice_items_attributes_0__destroy" name="invoice[invoice_items_attributes][0][_destroy]" type="hidden" value="false"&gt;
    &lt;a class="btn btn-warning remove_fields existing" href="#"&gt;Remove Invoice Item&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>If I have the following in rspec/capybara, it finds the hidden element:</p>
  
  <pre><code>find(:xpath, '//input[@id="invoice_invoice_items_attributes_0__destroy"]', visible: false)
  </code></pre>
  
  <p>If I try this, it doesn't find the link  element:</p>
  
  <pre><code>find(:xpath, '//input[@id="invoice_invoice_items_attributes_0__destroy"]/a', visible: false)
  </code></pre>
  
  <p>The end goal is to do this:</p>
  
  <pre><code>find(:xpath, '//input[@id="invoice_invoice_items_attributes_0__destroy"]/a', visible: false)
  </code></pre>
  
  <p>How do I get there?</p>