title: selecting option from hidden drop down menu
body: <pre class="lang-html prettyprint-override"><code>&lt;table id="rusTable" class="groupTable" cellspacing="0" cellpadding="0"&gt;
    &lt;tbody class="ui-sortable" style=""&gt;
      &lt;tr class="groupTop ruBorder" style="display: table-row;"&gt;
      &lt;tr id="ru0" class="siru"&gt;
      &lt;tr class="ruOp off"&gt;
        &lt;td class="first"&gt;&lt;/td&gt;
        &lt;td colspan="3"&gt;
          &lt;select class="ruOpSelect"&gt;
            &lt;option&gt;&lt;/option&gt;
            &lt;option value="AND"&gt;AND&lt;/option&gt;
            &lt;option&gt;AND NOT&lt;/option&gt;
            &lt;option&gt;OR&lt;/option&gt;
          &lt;/select&gt;  
        &lt;/td&gt;
        &lt;td class="last"&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr id="ru1" class="siru"&gt;
      &lt;tr class="ruOp off"&gt;
        &lt;td class="first"&gt;&lt;/td&gt;
        &lt;td colspan="3"&gt;
        &lt;td class="last"&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr id="ru2" class="siru"&gt;
      &lt;tr class="groupBtm ruBorder" style="display: table-row;"&gt;
    &lt;/tbody&gt;
    &lt;tfoot&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I want to select the AND option</p>
  
  <p>Selenium webdriver code</p>
  
  <pre><code>actions.moveToElement(driver.findElement(By.xpath("//*@id='ruTable']/tbody/tr[3]/td[2]"))).build().perform();
  waitForElement(By.xpath("(//*[@id='ruTable']//*[contains(@class,'ruOpSelect')])[1]"),30);
  new Select(driver.findElement(By.xpath("(//*[@id='ruTable']//*[contains(@class,'ruOpSelect')])[1]"))).selectByVisibleText("AND");
  </code></pre>
  
  <p>It does hover action but does not select anything from drop down menu</p>
  
  <blockquote>
    <p><em>ERROR - Timed out after 30 seconds waiting for visibility of element located by By.xpath:</em> <br/>
    <em>(<code>//*[@id='ruTable']//*[contains(@class,'ruOpSelect')])[1]</code></em></p>
  </blockquote>