title: Cypress unable to find element and submit
body: <p>I am using cypress to login a page but I am hitting error at submit.
  there is 2 Login buttons at the same page. how do I locate the right login button?
  for quick qorkaround I added this syntax behind last command. but i wondering how can I locate the button if same page consist of same name and type of Login button.</p>
  <pre><code>.type('{enter}')
  </code></pre>
  <p>without workaround, error</p>
  <pre><code>cy.submit() can only be called on a single form. Your subject contained 2 form elements.
  </code></pre>
  <p>the web page element:</p>
  <pre><code>&lt;form action=&quot;/test/abc&quot; method=&quot;get&quot;&gt;&lt;h6&gt;Login with your own user&lt;/h6&gt;&lt;input maxlength=&quot;9&quot; name=&quot;ID&quot; placeholder=&quot;testID&quot; style=&quot;margin-right: 5px&quot; value=&quot;ABC123&quot;&gt;&lt;input maxlength=&quot;255&quot; name=&quot;ID_FullName&quot; placeholder=&quot;Name&quot; style=&quot;margin-right: 5px&quot; value=&quot;Tester&quot;&gt;&lt;input name=&quot;EntID&quot; placeholder=&quot;UPASS&quot; style=&quot;margin-right: 5px&quot; value=&quot;B12345&quot;&gt;&lt;select name=&quot;Role&quot; style=&quot;margin-right: 5px&quot;&gt;&lt;option value=&quot;Acceptor&quot;&gt;Acceptor&lt;/option&gt;&lt;option value=&quot;Admin&quot;&gt;Admin&lt;/option&gt;&lt;option value=&quot;User&quot;&gt;User&lt;/option&gt;&lt;/select&gt;&lt;button autofocus=&quot;&quot; type=&quot;submit&quot;&gt;Login&lt;/button&gt;&lt;/form&gt;
  </code></pre>
  <p>another element at the same page, form too.</p>
  <pre><code>&lt;form action=&quot;/test/abc&quot; method=&quot;get&quot;&gt;&lt;select name=&quot;Srt&quot; style=&quot;width: 100%; display: block; font-size: 25px&quot;&gt;&lt;option value=&quot;111233&quot;&gt;fdsfdf - teset&lt;/option&gt;&lt;option value=&quot;fdsfsd&quot;&gt;rewr - 201005853W&lt;/option&gt;&lt;/select&gt;&lt;button autofocus=&quot;&quot; style=&quot;margin-top: 10px;  width:100%; display: block; height:80px; font-size: 20px&quot; type=&quot;submit&quot;&gt;Login&lt;/button&gt;&lt;/form&gt;
  </code></pre>
  <p>my scripts:</p>
  <pre><code>   cy.get('form').within(($form) =&gt; {
      cy.get('input[name=&quot;ID&quot;]').type('A12345678')
      cy.get('input[name=&quot;ID_FullName&quot;]').type('Accp John')
      cy.get('input[name=&quot;EntID&quot;]').type('B56789')
      cy.get('[name=&quot;Role&quot;]').select('Acceptor')
      cy.root().submit()
    })
  </code></pre>