title: dropdownlist...Exception in thread "main" org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "a"
body: <pre><code>WebDriver driver=new FirefoxDriver();
  driver.get("https://login.salesforce.com/");
  Select selectname = new Select(driver.findElement(By.xpath("html/body/div[5]/div[2]/div[3]/div[2]/div/div[2]/div/div[4]/div/div[1]/div/div/div[1]/div[2]/div/div/div/div/div/div/div/a"))));
      selectname.selectByIndex(2);
  </code></pre>
  
  <p>Here i am finding out the xpath by using firebug and firepath
  which shows the firepath of dropdownlist of leads as</p>
  
  <p>**also i tried to take partial xpath but easch and every time its showing different xpath,so i proceed with the absoulte xpath</p>
  
  <p><a href="https://i.stack.imgur.com/lUVmp.png" rel="nofollow noreferrer">lead dropdownlist xpath</a></p>