How to copy a table using selenium?

Please tell me how to copy a table using selenium.
Example table:

.....
<table class="users">
 <tbody><tr class="new">
<td>1</td>
 </tr></tbody></table>


I find the element by class, but cannot copy the contents into an array.
In the final version the table should be saved to a file.
September 19th 19 at 00:21
1 answer
September 19th 19 at 00:23
Solution
Resolved the issue by iterating through the table rows using xpath.
while k < 10:
try:
 new_users = driver.find_element_by_xpath('//*[@id="new"]/div/table[2]/tr['+str(k)+']').text
list.append(new_users+'\n')
except:
pass
 j += 1

Find more questions by tags PythonSelenium