title: how to check the one item from the list in Selenium webdriver java
body: <pre><code>public class Test1 {
   public static void main(String[] args) {
  
        WebDriver driver = new FirefoxDriver();
        driver.get("http://shop.wikimedia.org");
        WebElement dropDownSelectWebElement = driver.findElement(By.xpath("//*[@id='currencies']"));
        Select dropDownSelect = new Select(dropDownSelectWebElement);
        String currency = "Euro (EUR)";
        dropDownSelect.selectByVisibleText(currency);
        List &lt;WebElement&gt;currencyList = new ArrayList&lt;WebElement&gt;();
        currencyList = dropDownSelect.getOptions();
        Iterator currencyIterator = currencyList.iterator();
        WebElement actualCurrencyName = null;
        while(currencyIterator.hasNext()){
  
         //System.out.println(currencyIterator.next());
         actualCurrencyName = (WebElement) currencyIterator.next();
         //System.out.println(actualCurrencyName.getText());
  
  
        }
        //System.out.println(currencyList);
  
        if(currencyList.contains("Euro (EUR)"))//I am not able to find out the Euro available in the list or not
        {
         System.out.println("This currency is exist in the List");
        }
        else 
        {
         System.out.println("Get out...");
        }
       }
  
  }
  </code></pre>
  
  <p>Kindly help me out, to check whether the list of options.</p>