title: Webdriver - wait for text of an element to change
body: <p>I created an object for an element in my application. This element is text for records displayed on the screen. So on the first page, it will say something like "displaying 1-10 of 2100"</p>
  
  <pre><code>public static final String VTeam_M_Detail_VRecordsText = "css=#UserList:last-of-type &gt; div:last-child";
  </code></pre>
  
  <p>When I am changing pages, the text of that element changes. So if I go to the 2nd page, it will say "displaying 11-20 of 2100". How can I get webdriver to wait for the text of that element to change before continuing the test. So when I go from page 1 to page 2, I want to wait for that element to have text equal to "displaying 11-20 of 2100" before continuing with the rest of the test. </p>