title: C# How to keep Selenium WebElement in memory to have time to get its details
body: <p>I'm trying to spy a web site with Selenium and C# to watch if new items appears on it.
  Inside this web site, I have a list of <code>&lt;div class="myClass"&gt;</code> elements displayed like a table with many sub divs.
  Periodically, I read all displayed divs and check if a new one is present.
  But the number of divs is limited and when a new element appears, the oldest one is removed and it making an issue on my code.</p>
  
  <p>Example: <em>The max number of items is 3.</em></p>
  
  <ol>
  <li>I get 3 items <strong>A,B,C</strong>. </li>
  <li>a new item <strong>D</strong> appears. </li>
  <li>I read the 3 displayed items: when I'm reading all sub div of <strong>D</strong>, a new item <strong>E</strong> comes and <strong>D</strong> is moved and I get an error like "Element is no longer attached to the DOM"</li>
  </ol>
  
  <p>I get this error because the reading of all <strong>D</strong> sub divs is too long.</p>
  
  <p>I'm getting the webelement using <code>FindElement(By.Name("elemName")</code>
  There is a way to keep the element in memory even if this one is move or removed from the DOM?</p>
  
  <p>Thanks!</p>