title: Selenium: Element is not visible when trying to select option in drop-down list?
body: <p>How can I select an item <code>Option 3</code> in drop down as below? </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;span class="k-widget k-dropdown k-header form-control required" style="padding: 0px;" unselectable="on" role="listbox" aria-haspopup="true" aria-expanded="true" tabindex="0" aria-owns="assignee_listbox" aria-disabled="false" aria-readonly="false" aria-busy="false" aria-activedescendant="assignee_option_selected"&gt;
      &lt;span class="k-dropdown-wrap k-state-default" unselectable="on"&gt;
   &lt;select id="assignee" class="form-control required" style="padding: 0px; display: none;" name="assignedUserId" data-role="dropdownlist" title=""&gt;
    &lt;option value="28941"&gt;Option 1&lt;/option&gt;
    &lt;option value="28938"&gt;Option 2&lt;/option&gt;
    &lt;option value="28940"&gt;Option 3&lt;/option&gt;
    &lt;option value="28942"&gt;Option 4&lt;/option&gt;
    &lt;option value="28943" selected="selected"&gt;Option 5&lt;/option&gt;
    &lt;option value="28939"&gt;Option 6&lt;/option&gt;
   &lt;/select&gt;
      &lt;/span&gt;
  &lt;/span&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I tried to select the option 3 on drop-down list, below is my code:</p>
  
  <pre><code>public Page selectAsignee(String asignee){
          try{
              WebElement dropdownAsignee = connector.waitForControl(SBConstant.XPATH,dropdownAssignee,3);
              // My xPath is //select[@id='assignee']
              Select select = new Select(dropdownAsignee);
              select.selectByVisibleText("Option 3");
              return this;
  
          }catch (StaleElementReferenceException s){
              s.toString();
          }
          return this;
      }
  </code></pre>
  
  <p>But it's unable to select option 3 although web driver can detect the select with id ="assignee". 
  After run this code, it throws the error like this:</p>
  
  <blockquote>
    <p>org.openqa.selenium.ElementNotVisibleException: Element is not
    currently visible and so may not be interacted with</p>
  </blockquote>
  
  <p>I'm hoping someone can point out an error on my part that will make this all better.</p>