title: Find element in Selenium using XPATH or CSS Selector
body: <p>I m trying to find the element "import" using Selenium Webdriver in C#. Have tried the following codes but nothing find it.</p>
  
  <pre><code>driver.FindElement(By.XPath("//*[@class='menu_bg']/ul/li[3]")).Click();
  driver.FindElement(By.XPath("//*[@id='import']/a")).Click();
  driver.FindElement(By.CssSelector("#import&gt;a")).Click();
  driver.FindElement(By.XPath("//*[@class='menu_bg']/ul/li[3]/a")).Click();
  driver.FindElement(By.CssSelector("ul[@class='menu_bg']&gt;li[value='3']")).Click();
  </code></pre>
  
  <p>Please help me out. Design page looks like below:</p>
  
  <pre><code>&lt;body&gt;
      &lt;div class="header_bg"&gt;&lt;/div&gt;
      &lt;div class="menu_bg"&gt;
          &lt;ul class="menu"&gt;
              &lt;li id="retrieve"&gt;&lt;/li&gt;
              &lt;li id="scan" class="test"&gt;&lt;/li&gt;
              &lt;li id="import"&gt;
                  &lt;a target="main" href="import/import.aspx" onclick="clickme(this,'import')"&gt;Import&lt;/a&gt;
              &lt;/li&gt;
              &lt;li id="admin"&gt;&lt;/li&gt;
              &lt;li id="help"&gt;&lt;/li&gt;
              &lt;li style="float: right;"&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt; 
  &lt;/body&gt;
  </code></pre>
  
  <p>All the time I got the error as below:</p>
  
  <pre><code>unable to find the element
  </code></pre>