title: How to get a list of elements with Selenium using C#
body: <p>I am trying to make a list of web elements in Selenium. My issue now is that there are 4 gifs that can all be clicked on but all hold the same values. I need to make a list of them so I can choose which one I want. Here is my line of code</p>
  
  <pre><code>List&lt;IWebElement&gt; createGifs = driver.FindElements(By.XPath("//img[@ src='images/document_create.gif']"));
  </code></pre>
  
  <p>Everywhere I look online has this as a suitable answer. However I am receiving the error:</p>
  
  <blockquote>
    <p>Error  1   Cannot implicitly convert type 'System.Collections.ObjectModel.ReadOnlyCollection' to 'System.Collections.Generic.List'   </p>
  </blockquote>
  
  <p>Does anyone have an idea of how to accomplish what I am looking for or how to get around this error?</p>