import lxml.html
root = lxml.html.fromstring(driver.page_source)
for row in root.xpath('.//table[@id="thetable"]//tr'):
    cells = row.xpath('.//td/text()')
dict_value = {'0th': cells[0], '1st': cells[1], '2nd': cells[2], '3rd':
    cells[3], '6th': cells[6], '7th': cells[7], '10th': cells[10]}
Getting text of a table quickly in Selenium