title: How to perform some actions on each value from a drop down using selenium java?
body: <p>How to perform some actions on each value from a drop down using selenium java?
  I am using below code. Please help.</p>
  
  <pre><code>WebElement bldgs=Fn_GetWebElement(CreateSSIObject.getProperty("Bldgselect"));
  Select  Bldg_select=new Select(bldgs);
  
  List&lt;WebElement&gt; dropdownvalues = Bldg_select.getOptions();
  
  int count=dropdownvalues.size();
  System.out.println("Toatl number of values are :"+count);
  
      for(int i=1;i&lt;26;i++)
      {       
          if(dropdownvalues.get(i).isEnabled())
          {
               dropdownvalues.get(i).click();
               System.out.println("Not Working :"+i);
          }
      }
  </code></pre>