title: How to put List<webelement> into ArrayList using selenium web driver/java?
body: <p>There is a drop downlist, where i need to compare the new values with a old month string= Sep 2015 (Unconventional wells). Then if not equals then that is a new month and it should be downloaded, or else come out of the loop. Can I put the List into ArrayList and compare the string?</p>
  
  <p>Please help</p>
  
  <pre><code>WebDriver driver=new FirefoxDriver();
            //opening the PA page
            driver.get("http://www.depreportingservices.state.pa.us/ReportServer/Pages/ReportViewer.aspx?%2fOil_Gas%2fOil_Gas_Well_Historical_Production_Report");
          //maximizing the window
            driver.manage().window().maximize();
            WebElement select = driver.findElement(By.xpath(".//*[@id='ReportViewerControl_ctl04_ctl03_ddValue']"));
  
  
  
            //List&lt;WebElement&gt; options = select.findElements(By.tagName("option"));
  
            String str="Sep 2015 (Unconventional wells)";
  </code></pre>