python selenium get html content
snippet in html

selenium python get innerhtml

user1087

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

python selenium get html content

user3923

element.get_attribute('innerHTML')