title: How to target a input box with selenium when the ID changes?
body: <p>Trying to automate certain tests dealing with Yammer. What I want to do is to use selenium to post something, but when I click on the textbox it changes it's id. Also, everytime the page reloads, or a post is made, that textbox changes it's id.</p>
  
  <p>So what I did next was to use wildcards by telling selenium to look for </p>
  
  <pre><code>//input[starts-with(id, 'yamjs')]
  </code></pre>
  
  <p>However, I quickly found out that yamjs is used for both the body of the update as well as the  "+ Add people to notify" textbox.</p>
  
  <p>The difference between the two seems to be the class. The one that we're interested in has a <code>class="yj-tapf-textarea"</code> whereas the add people to notify textbox has a <code>class="yj-callout-bar-entry-field"</code></p>
  
  <p>How do I get selenium to find the input field with the id that starts with yamjs within the class yj-tapf-textarea, and not the one in the class yj-callout-bar-entry-field?</p>