title: Select element from dropdown by visible text using javascript executor
body: <p>I'm using selenium with Tor and I'd like to select an item from a dropdown list by the visible text or by part of text. The class Select doesn't work cause of a bug in firefox</p>
  
  <p>So this is my code:</p>
  
  <pre><code>Select dropdown = new Select(driver.findElement(By.id("serverLogin"))); //Selects my dropdown
  dropdown.selectByVisibleText(server);   //Selects the server
  </code></pre>
  
  <p>How can I do it using javascript executor?</p>