title: Using Selenium 2's IWebDriver to interact with elements on the page
body: <p>I'm using Selenium's <code>IWebDriver</code> to write Unit Tests in C#.</p>
  
  <p>Such is an example:</p>
  
  <pre><code>IWebDriver defaultDriver = new InternetExplorerDriver();
  var ddl = driver.FindElements(By.TagName("select"));
  </code></pre>
  
  <p>The last line retrieves the <code>select</code> HTML element wrapped in a <code>IWebElement</code>.</p>
  
  <p>I <strong>need a way to simulate selection to a specific <code>option</code> in that <code>select</code> list</strong> but I can't figure out how to do it.</p>
  
  <hr>
  
  <p>Upon some <a href="https://stackoverflow.com/questions/1476941/using-selenium-for-selecting-an-option-on-a-select-with-optgroup">research</a>, I found examples where people are using the <code>ISelenium DefaultSelenium</code> class to accomplish the following, but I am not making use of this class because I'm doing everything with <code>IWebDriver</code> and <code>INavigation</code> (from <code>defaultDriver.Navigate()</code>).</p>
  
  <p>I also noticed that <code>ISelenium DefaultSelenium</code> contains a ton of other methods that aren't available in the concrete implementations of <code>IWebDriver</code>.</p>
  
  <p>So is there any way I can use <code>IWebDriver</code> and <code>INavigation</code> in conjunction with <code>ISelenium DefaultSelenium</code> ?</p>