title: Selenium Webdriver FindsBy annotation equivalent to driver.FindElements(...)
body: <p>I'm playing around with PageFactory and object identification using FindsBy attributes. I'm liking it so far but I can't find a FindsBy annotation equivalent to the following which retrieves a list of elements from a table. </p>
  
  <pre><code>driver.FindElements(By.CssSelector("#searchtable tr td a"));
  </code></pre>
  
  <p>If I try this: </p>
  
  <pre><code>[FindsBy(How = How.CssSelector, Using = "#searchtable tr td a")]
  public List&lt;IWebElement&gt; searchGridContents;
  </code></pre>
  
  <p>I get the error <strong>"Type of field searchGridContents is not IWebElement or IList."</strong> </p>
  
  <p>PageFactory.initelements() looks for <code>typeof(IList&lt;IWebElement&gt;</code>) or <code>typeof(IWebElement)</code>). It seems that what FindElements above returns is </p>
  
  <pre><code>System.Collections.ObjectModel.ReadOnlyCollection&lt;OpenQA.Selenium.IWebElement&gt;
  </code></pre>
  
  <p>Is there an annotation equivalent to this for PageFactory? I don't want to mix and match element identification approaches if I can help it. </p>