title: Create a WebElement array from a string array
body: <p>I want to create a WebElement list from a String array by using Findby in Selenium.</p>
  
  <p>My String array has this value:</p>
  
  <pre><code>String [] s1 = {"Sale Condo", "Rent Condo"};
  </code></pre>
  
  <p>And I am looping this String array to create a list of WebElement by doing this:</p>
  
  <pre><code>List&lt;WebElement&gt; allElem=new ArrayList&lt;WebElement&gt;();
  for (String s: s1){
      @FindBy(linkText=s)
      allElem.add();
  }
  </code></pre>
  
  <p>I am not able to do it. Please help on how can I accomplish this.</p>