title: Can't select an option in a drop-down with dynamic values, with codeceptjs and javascript
body: <p>This is my firts question and I don't speak English very well, but hope to can explain my problem.
  I spent some days looking for an answer in a similar question, but I didn't find it.</p>
  <p>I'm automatiziting test with javascript. I use codeceptjs.</p>
  <p>I have to make a test with a select. This select has ID, no problem, but the options has value, witch it's dynamically generated. I want to select the second option, but can't select by text, value or similar.</p>
  <p>The code I need to test is this:</p>
  <pre><code>&lt;select id=&quot;time_slots_list&quot; name=&quot;selectedTimeSlot&quot; class=&quot;form-control&quot;&gt;
         &lt;option value=&quot;&quot; selected&gt;Choose delivery&lt;/option&gt;
         &lt;option value=&quot;1601967600000&quot; &gt;Tuesday 06 - Betwwen 09 and 12h&lt;/option&gt;
         &lt;option value=&quot;1601967600000&quot; &gt;Tuesday 06 - Betwwen 12 and 14h&lt;/option&gt;
         &lt;option value=&quot;1601967600000&quot; &gt;Tuesday 06 - Betwwen 14 and 16h&lt;/option&gt;
         &lt;option value=&quot;1601967600000&quot; &gt;Tuesday 06 - Betwwen 16 and 18h&lt;/option&gt;
         &lt;option value=&quot;1601967600000&quot; &gt;Tuesday 06 - Betwwen 18 and 21h&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  <p>Each value changes every week.</p>
  <p>My code is this:</p>
  <pre><code>const opcionEnvio = await I.grabTextFrom('select[@id=&quot;time_slots_list&quot;]/option:nth-child(2)');
  I.selectOption('select[@id=&quot;time_slots_list&quot;]',opcionEnvio);
  </code></pre>
  <p>I tried several variants, but I can't achieve it.</p>
  <p>Thanks</p>