copy outer html selenium java xpath 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')