check inner HTML selenium code example
Example: selenium python get innerhtml
element = driver.find_element_by_xpath('//*')
element = element.get_attribute('innerHTML')
element = driver.find_element_by_xpath('//*')
element = element.get_attribute('innerHTML')