title: Selecting element from drop down list using selenium web driver
body: <p>I want to select element from drop down list but in html they have used <code>&lt;img&gt;</code> tag. How can I achieve my goal?</p>
  
  <p>This is stuff from my code:</p>
  
  <pre><code>public void country() {
      driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
      Select country1 = new Select(country);
      country1.selectByVisibleText("Canada");
  }
  </code></pre>
  
  <p>I am getting this error while running testNg test</p>
  
  <blockquote>
    <p>org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "img"</p>
  </blockquote>