title: Interacting with Webdriver elements from a list
body: <p>It's late and I must be missing something simple here but I just can't figure it out.</p>
  
  <p>I am attempting to automate the user input of a form using Webdriver. The catch is that the form is dynamic and has lots of custom fields. In this case, I am trying to send a simple string to ALL of the text entry boxes on the form. I think I'm half way there; I am able to pull all text fields using XPath and put them into a List. However, I'm not sure how to interact with them once they are there.. Here is the code I have so far:</p>
  
  <pre><code>List&lt;IWebElement&gt; textfields = new List&lt;IWebElement&gt;();
  
  var test = Driver.FindElements(By.XPath("//*[@type='text']"));
  
  foreach (IWebElement fields in test)
  {
      textfields.Add(fields);
  }
  </code></pre>
  
  <p>The way in which I interact with WebDriver is something like this: </p>
  
  <p><code>Driver.FindElements(By.XPath(querygoeshere)).SendKeys("test");</code>. </p>
  
  <p>However, everything in the list is an IWebElement.. What do I do next? Am I on the wrong path here?</p>