Note that there are some explanatory texts on larger screens.

plurals
  1. POSelenium IDE - unable to select value in list possibly due to 'onchange' event
    text
    copied!<p>I'm having trouble running the following command to select a value in a drop down list using selenium IDE.</p> <hr> <p>Command = <strong>Select</strong> Target = <strong>NumberOfAdultRecords</strong> Value = <strong>label=4</strong></p> <hr> <p>When i run the test above in sequence with the other commands in the test case, the value 4 is not selected in the drop down. If i select only that one command line and use the 'Find' feature it highlights the element and if i double click the command while the test is paused or stopped it successfully selects the 4th value.</p> <p>I've sourced other explanations and found this <a href="https://stackoverflow.com/questions/2544336/selenium-onchange-not-working"><a href="https://stackoverflow.com/questions/2544336/selenium-onchange-not-working">Selenium onChange not working</a></a> and i believe that i'm experiencing the same issue with the OnChange event.</p> <p>Could some please help me write a test command to select the 4th value within the following code:</p> <pre><code>&lt;div style="background-color: rgb(255, 204, 0); width: 66px; height: 35px; float: left;"&gt;&lt;select onchange="javascript:updateCostsAdult(this.value);" id="NumberOfAdultRecords" name="NumberOfAdultRecords"&gt; &lt;option selected="" value="0"&gt;0&lt;/option&gt; &lt;option value="1"&gt;1&lt;/option&gt; &lt;option value="2"&gt;2&lt;/option&gt; &lt;option value="3"&gt;3&lt;/option&gt; &lt;option value="4"&gt;4&lt;/option&gt; &lt;option value="5"&gt;5&lt;/option&gt; &lt;/select&gt;&lt;/div&gt; </code></pre> <p>I would really appreciate any help</p> <p>Cheers</p> <p>Jules</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload