title: How can I select an drop down menu item with watir-webdriver
body: <p>I'm using watir-webdriver to automate and test with an application. In the process I need to click on a drop down and select a value, however watir can't seem to select the  item. Please help?</p>
  
  <p>My code:</p>
  
  <pre><code>browser.text_field(:id =&gt; "user_username").set "#{username}"
  browser.select_list(:id =&gt; 'user_date_of_birth_month').clear
  puts browser.select_list(:id =&gt; 'user_date_of_birth_month').options
  browser.select_list(:id =&gt; 'user_date_of_birth_month').select "9"
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code> &lt;label class="sc-font-light sc-text-light next-light-label" for="user_date_of_birth_month
  2. When were you born?&lt;span class="inline-help"&gt;&lt;span class="content hidden"&gt;For information on why we ask for your date of birth, see &lt;a href="http://help.soundcloud.com/customer/portal/articles/1481474-why-do-you-need-my-date-of-birth-" target="_blank"&gt;this help center article&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;div class="width_1_2"&gt;&lt;select id="user_date_of_birth_month"name="user[date_of_birth][month]"&gt;
   &lt;option value=""&gt;Month&lt;/option&gt;
   &lt;option value="1"&gt;January&lt;/option&gt;
   &lt;option value="2"&gt;February&lt;/option&gt;
   &lt;option value="3"&gt;March&lt;/option&gt;
   &lt;option value="4"&gt;April&lt;/option&gt;
   &lt;option value="5"&gt;May&lt;/option&gt;
   &lt;option value="6"&gt;June&lt;/option&gt;
   &lt;option value="7"&gt;July&lt;/option&gt;
   &lt;option value="8"&gt;August&lt;/option&gt;
   &lt;option value="9"&gt;September&lt;/option&gt;
   &lt;option value="10"&gt;October&lt;/option&gt;
   &lt;option value="11"&gt;November&lt;/option&gt;
   &lt;option value="12"&gt;December&lt;/option&gt;
  &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I'm trying to select a month, year and the gender the site asks for. Thanks for your help :)</p>