Capybara::ElementNotFound radio by id <p>I understand the syntax for Capybara choosing a radio button is the following</p> <pre><code>choose("Label Name") </code></pre> <p>I am running into an issue with doing this for a label that has its default name changed to an <code>#id</code>. </p> <p>Here is my HTML</p> <pre><code> &lt;label for="school_application_I_20"&gt; Do you require an I-20 Form?&lt;/label&gt; &lt;br&gt; &lt;label for="school_application_I_20_true"&gt;Yes&lt;/label&gt; &lt;input id="i-20-1" name="school_application[I_20]" type="radio" value="true" /&gt; &lt;label for="school_application_I_20_false"&gt;No&lt;/label&gt; &lt;input id="i-20-2" name="school_application[I_20]" type="radio" value="false" /&gt; &lt;br&gt; </code></pre> <p>When I try to do the old method of choosing the element with </p> <pre><code> choose('school_application_I_20_true') </code></pre> <p>I get </p> <pre><code>Capybara::ElementNotFound: Unable to find radio button "school_application_I_20_true" </code></pre> <p>When I change the choose to use the element ID I get the same error but for the ID. Is there a way to select a radio button by ID?</p>