selenium python get innerhtml

HTML
element = driver.find_element_by_xpath('//*')
element = element.get_attribute('innerHTML')
Source

Also in HTML: