title: getting a TypeError: "v.replace is not a function" while using cypress select with index
body: <p>I have a select in my html which looks something like this</p>
  <pre><code>&lt;select testId=&quot;selectSth&quot; name=&quot;select&quot;&gt; 
      &lt;option value=&quot;someValue&quot;&gt;some Value&lt;/option&gt;
      &lt;option value=&quot;someOtherValue&quot;&gt;some Other Value&lt;/option&gt;
      &lt;option value=&quot;somethingelse&quot;&gt;somethingelse&lt;/option&gt;
  &lt;/select&gt;
  &lt;button testId=&quot;buttonNext&quot; title=&quot;Next&quot;&gt;
      &lt;span&gt;Next&lt;/span&gt;
  &lt;/button&gt;
  </code></pre>
  <p>since the content of the select is generated dynamically, i try to select the first value and click the next-button via cypress with this code:</p>
  <pre><code>cy.get('[testId=selectSth]').select(0);
  cy.get('[testId=buttonNext]').click();
  </code></pre>
  <p>but i am getting an TypeError at the select(0) step: <strong>TypeError: v.replace is not a function</strong> with the following stacktrace</p>
  <pre><code>    at &lt;unknown&gt; (http://localhost:3000/__cypress/runner/cypress_runner.js:150908:19)
          at Array.map (&lt;anonymous&gt;)
      at Context.select (http://localhost:3000/__cypress/runner/cypress_runner.js:150904:45)
      at Context.&lt;anonymous&gt; (http://localhost:3000/__cypress/runner/cypress_runner.js:169833:24)
      at &lt;unknown&gt; (http://localhost:3000/__cypress/runner/cypress_runner.js:168527:18)
  From previous event:
      at runCommand (http://localhost:3000/__cypress/runner/cypress_runner.js:168506:11)
      at next (http://localhost:3000/__cypress/runner/cypress_runner.js:168649:17)
      at &lt;unknown&gt; (http://localhost:3000/__cypress/runner/cypress_runner.js:168678:19)
  </code></pre>
  <p>I have also been able to call the select call with a specific value, and it all worked. It just doesn't seem to work with indexes.</p>
  <pre><code>cy.get('[testId=selectSth]').select('someValue');
  cy.get('[testId=buttonNext]').click();
  
  </code></pre>
  <p>but i really don't want to do it with exact values. Does anyone know why the TypeError occurs?</p>