title: watir webdriver select_list element not visible error
body: <p>I am trying to select an option from a select list using watir-webdriver.</p>
  
  <p>watir-webdriver gem version : 0.6.4
  Ruby 1.9.3 on mac osx lion</p>
  
  <p>HTML of the select list:</p>
  
  <pre><code>&lt;select id="cc.expiryMonth" name="cc.expiryMonth"&gt;
  &lt;option value="0"&gt;Month&lt;/option&gt;
  &lt;option value="1"&gt;01&lt;/option&gt;
  &lt;option value="2"&gt;02&lt;/option&gt;
  &lt;option value="3"&gt;03&lt;/option&gt;
  &lt;option value="4"&gt;04&lt;/option&gt;
  &lt;option value="5"&gt;05&lt;/option&gt;
  &lt;option value="6"&gt;06&lt;/option&gt;
  &lt;option value="7"&gt;07&lt;/option&gt;
  &lt;option value="8"&gt;08&lt;/option&gt;
  &lt;option value="9"&gt;09&lt;/option&gt;
  &lt;option value="10"&gt;10&lt;/option&gt;
  &lt;option value="11"&gt;11&lt;/option&gt;
  &lt;option value="12"&gt;12&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>The code i used is</p>
  
  <pre><code>@browser.select_list(:name =&gt; "cc.expiryMonth").options[4].select
  </code></pre>
  
  <p>I am getting error</p>
  
  <pre><code>Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotVisibleError)
    [remote server] file:///var/folders/_c/j__zdvw93gqgyyvzwmmgtwwr0000gn/T/webdriver-profile20130620-1023-1s8kag6/extensions/fxdriver@googlecode.com/components/command_processor.js:7736:in `fxdriver.preconditions.visible'
    [remote server] file:///var/folders/_c/j__zdvw93gqgyyvzwmmgtwwr0000gn/T/webdriver-profile20130620-1023-1s8kag6/extensions/fxdriver@googlecode.com/components/command_processor.js:10437:in `DelayedCommand.prototype.checkPreconditions_'
    [remote server] file:///var/folders/_c/j__zdvw93gqgyyvzwmmgtwwr0000gn/T/webdriver-profile20130620-1023-1s8kag6/extensions/fxdriver@googlecode.com/components/command_processor.js:10456:in `DelayedCommand.prototype.executeInternal_/h'
    [remote server] file:///var/folders/_c/j__zdvw93gqgyyvzwmmgtwwr0000gn/T/webdriver-profile20130620-1023-1s8kag6/extensions/fxdriver@googlecode.com/components/command_processor.js:10461:in `DelayedCommand.prototype.executeInternal_'
    [remote server] file:///var/folders/_c/j__zdvw93gqgyyvzwmmgtwwr0000gn/T/webdriver-profile20130620-1023-1s8kag6/extensions/fxdriver@googlecode.com/components/command_processor.js:10401:in `DelayedCommand.prototype.execute/&lt;'
    ./features/step_definitions/Wotif_FlightSearch_DOM_steps.rb:145:in `/^I enter all details on booking page$/'
  </code></pre>
  
  <p>Went through the watir-webdriver code in the gem library and exhausted all ways of selecting an option, all of them throw the same error.</p>
  
  <pre><code>@browser.select_list(:name =&gt; "cc.expiryMonth").focus
  </code></pre>
  
  <p>is successful, but selecting option throws element not visible error.
  Also tried send_keys unsuccessfully.
  Would appreciate any suggestions on how to handle this</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <pre><code>@browser.select_list(:name =&gt; "cc.expiryMonth").options[8].value
  </code></pre>
  
  <p>returns the value but</p>
  
  <pre><code>@browser.select_list(:name =&gt; "cc.expiryMonth").options[8].select
  </code></pre>
  
  <p>or </p>
  
  <pre><code>@browser.select_list(:name =&gt; "cc.expiryMonth").select @browser.select_list(:name =&gt; "cc.expiryMonth").options[8].value returns element not found error    
  </code></pre>