title: Select each option in a drop down using Selenium WebDriver C#
body: <p>I'm not able to select options in a drop down list. I think I need to have <code>.Select</code> or <code>SelectElement</code>, but there is no such option.</p>
  
  <p>Sample code:</p>
  
  <pre><code>IWebDriver ffbrowser = new FirefoxDriver();
  ffbrowser.Navigate().GoToUrl("http://www.amazon.com/");
  ffbrowser.Manage().Window.Maximize();
  
  Thread.Sleep(500);
  
  IWebElement ddl = ffbrowser.FindElement(By.Name("url"));
  int numofitems = ddl.FindElements(By.TagName("option")).Count;
  
  for (int i = 1; i &lt; numofitems; i++)
  {
      ffbrowser.select("TagName = option", "index = i");
  }
  </code></pre>
  
  <p>The "select" in "ffbrowser.select" is reported as an error:</p>
  
  <p>Error   1   'OpenQA.Selenium.IWebDriver' does not contain a definition for 'select' and no extension method 'select' accepting a first argument of type 'OpenQA.Selenium.IWebDriver' could be found (are you missing a using directive or an assembly reference?)   </p>
  
  <p>My project references include <code>Selenium.WebDriverBackedSelenium</code>, <code>Thoughtworks.Selenium.Core</code>, <code>WebDriver</code>, <code>WebDriver.Support</code></p>
  
  <p>and I have </p>
  
  <pre><code>using NUnit.Framework;
  using OpenQA.Selenium;
  using OpenQA.Selenium.Chrome;
  using OpenQA.Selenium.Firefox;
  using OpenQA.Selenium.IE;
  using OpenQA.Selenium.Support.UI;
  </code></pre>