how to get all the elements of a html table with pagination using selenium?
<p>I have a webpage with a table. The table has pagination with 7 entries per page. I want to get access to all the elements of the table. </p>

<pre><code>table_element = driver.find_element_by_xpath(xpath)
for tr in table_element.find_elements_by_tag_name('tr'):
    print tr.text
</code></pre>

<p>With the above code, I am able to get the elements in the first page only but not the subsequent pages of the same table. How can I get all the elements?</p>

<p><a href="http://i.stack.imgur.com/6158V.png" rel="nofollow">sample image of the table</a></p>