selenium get html code code example
Example 1: python selenium get html content
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")