title: Robot Framework - Selenium2Library - Input text into field according to the text before it
body: <p>Due to every ID being randomly generated after each refresh, I am having to use other identifiers. I basically want Robot to input text into a field next to my indicated identifier.</p>
  
  <p><a href="https://vgy.me/3YBIgl.png" rel="nofollow noreferrer">https://vgy.me/3YBIgl.png</a></p>
  
  <p>I want text to be inputted to the user: field and using the "user:" as the locator to work with.
  It works with xpaths, but I would rather use another method which wont be so brittle.</p>
  
  <p>Here is the HTML used to generate the form</p>
  
  <pre><code>&lt;tbody id="m8DPe" class="z-rows"&gt;
  &lt;tr id="m8DPf" style="background:#FFFFFF;" class="z-row"&gt;
      &lt;td id="m8DPg-chdextr" style="background:#FFFFFF;text-align:left;" class="z-row-inner"&gt;
          &lt;div id="m8DPg-cell" class="z-row-content"&gt;
              &lt;span id="m8DPg" class="z-label"&gt;User:&lt;/span&gt;
          &lt;/div&gt;
      &lt;/td&gt;
      &lt;td id="m8DPh-chdextr" style="background:#FFFFFF;text-align:left;" class="z-row-inner"&gt;
          &lt;div id="m8DPh-cell" class="z-row-content"&gt;
              &lt;input id="m8DPh" class="z-textbox" value="" type="text" name="j_username"&gt;
          &lt;/div&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr id="m8DPi" style="background:#FFFFFF;" class="z-row z-grid-odd"&gt;
      &lt;td id="m8DPj-chdextr" style="background:#FFFFFF;text-align:left;" class="z-row-inner"&gt;
          &lt;div id="m8DPj-cell" class="z-row-content"&gt;
          &lt;span id="m8DPj" class="z-label"&gt;Password:&lt;/span&gt;
          &lt;/div&gt;
      &lt;/td&gt;
      &lt;td id="m8DPk-chdextr" style="background:#FFFFFF;text-align:left;" class="z-row-inner"&gt;
          &lt;div id="m8DPk-cell" class="z-row-content"&gt;
              &lt;input id="m8DPk" class="z-textbox" value="" type="password" name="j_password"&gt;
          &lt;/div&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p></p>
  
  <p>I know it would be something similar to this:</p>
  
  <pre><code>Input Text    //tr[contains(text(), 'Example') and ...]    ${USERNAME}
  </code></pre>
  
  <p>But I honestly do not know. Is there somewhere I could read up on this?</p>
  
  <p>I am extremely new to Robot Framework. Sorry for the noobness.</p>