title: In Cypress how to select input element based on name?
body: <p>I'm starting to learn Cypress. I want to select the input field and provide the phone number by using cypress.io. The code I have following but it does not work. However can I using find or there is another way to get the input element to type in phone number?</p>
  
  <pre><code>cy.get('div').contains('Phone Number').find('input[name=teacher[0].number]').type('8000-1612023')
  </code></pre>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="required field"&gt;
    &lt;label&gt;Phone Number&lt;/label&gt;
    &lt;div title="Teacher number" class="ui fluid right labeled input no-spinners"&gt;
        &lt;input required="" type="number" name="teacher[0].number" value=""&gt;
        &lt;div class="ui label label"&gt;US&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  </code></pre>