get html code of elemt in selenuim python code example
Example 1: selenium print html
element.get_attribute('innerHTML')
Example 2: selenium print html
elem = driver.find_element_by_xpath("//*")
source_code = elem.get_attribute("outerHTML")
element.get_attribute('innerHTML')
elem = driver.find_element_by_xpath("//*")
source_code = elem.get_attribute("outerHTML")