title: Selenium WebDriver with C# - How can I get all option value from a dropdown?
body: <p>I am a beginner  to both Selenium WebDriver &amp; Visual Studio 2017, I need help with:
  Get all the option values from the dropdown and print it in the console.</p>
  
  <pre><code>&lt;select id="FilterOrganization" name="FilterOrganization" tabindex="-1" class="select2-hidden-accessible" aria-hidden="true"&gt;&lt;option value=""&gt;Show All Organizations&lt;/option&gt;
  &lt;option value="0013000000H9TkiAAF"&gt; Associates, LLC&lt;/option&gt;
  &lt;option value="0018000000ubNRhAAM"&gt;Test Health Systems&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>This is what I have tried:</p>
  
  <pre><code>driver.FindElement(By.Id("org - list")).Click(); 
  SelectElement organization = new SelectElement(driver.FindElement(By.Id("FilterOrganization"))); 
  IList&lt;IWebElement&gt; options = organization.AllSelectedOptions; 
  foreach (IWebElement option in options)
  { 
      console.writeLine(option.Text) 
  } 
  </code></pre>
  
  <p>Thanks!</p>