title: Find Element under dl, dt using Selenium Webdriver, C#
body: <p>I'm using Selenium Webdriver 2.30 in C#.  I appreciate if someone can tell me how to get the link clicking (id="e") in the following structure.</p>
  
  <pre><code>&lt;frame name = "a"&gt;
      #document
          &lt;html&gt;
              &lt;head&gt;&lt;/head&gt;
              &lt;body&gt;
                  &lt;div id = "b"&gt;
                      &lt;dl id= "c"&gt;
                          &lt;dt class = "d"&gt;
                              &lt;a href = "http://somewhere.com" id = "e" class&gt; Go to somewhere&lt;/a&gt;
                          &lt;/dt&gt;
                          &lt;dt&gt;
                              &lt;a href = "http://something.com" id = "f"&gt; Find something &lt;/a&gt;
                          &lt;/dt&gt;
                      &lt;/dl&gt;
                  &lt;/div&gt;
              &lt;/body&gt;
          &lt;/html&gt;     
  &lt;/frame&gt;
  </code></pre>
  
  <p>I tried</p>
  
  <pre><code>selenium.SwitchTo().Frame("a");
  selenium.FindElement(By.XPath("//a[@id=\"e\"]")).Click();
  </code></pre>
  
  <p>And tried</p>
  
  <pre><code>selenium.SwitchTo().Frame("a");
  selenium.FindElement(By.XPath("//div[@id='b']/dl[1]/dt[1]/a")).Click();
  </code></pre>
  
  <p>I also tried</p>
  
  <pre><code>selenium.SwitchTo().Frame("a");
  selenium.FindElement(By.LinkText("Go to somewhere")).Click();
  </code></pre>
  
  <p>Unfortunately, none of them works.  The problem might because there is something different for element under a definition list, but I've not figured out.  </p>