title: How to find element with non-static ID using Selenium Webdriver C#
body: <p>I want to be able to send text to this text box element:</p>
  
  <pre><code>&lt;form class="compose okform initialized"&gt;
  
      &lt;div class="border"&gt;&lt;/div&gt;
      &lt;div id="message_9028519832635440005Container" class="inputcontainer textarea empty"&gt;
          &lt;textarea class="clone" placeholder="Compose your message" aria-hidden="true" style="height: 21px; width: 417px; line-height: 18px; text-decoration: none; letter-spacing: 0px;" tabindex="-1"&gt;&lt;/textarea&gt;
          &lt;textarea id="message_9028519832635440005" placeholder="Compose your message" style="height: 39px;"&gt;&lt;/textarea&gt;
  
          &lt;span class="okform-feedback message empty" style="height: 0"&gt;&lt;/span&gt;
          &lt;div class="icon okicon"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;button class="flatbutton" type="submit"&gt;&lt;/button&gt;
      &lt;div class="draft_message"&gt;&lt;/div&gt;
      &lt;label class="checkbox" for="enter_to_send_9028519832635440005"&gt;&lt;/label&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>I'm not able to location the element by searching for part of the ID (the number after message_ is dynamically generated).</p>
  
  <p>I've also tried this but I get an error saying "unknown error: cannot focus element":</p>
  
  <pre><code>var textBox = DriverActions.driver.FindElements(By.ClassName("inputcontainer"));
  textBox[0].SendKeys("Why hello");
  </code></pre>