title: How can I get all elements from drop down list in Selenium WebDriver?
body: <p>How can I get all elements from a drop down list? I used the code below:</p>
  
  <pre><code>List&lt;WebElement&gt; elements = driver.findElements(By.id("s"));
  </code></pre>
  
  <p>But I am always getting the first element only.</p>