element.get_attribute('innerHTML')
elem = driver.find_element_by_xpath("//*") source_code = elem.get_attribute("outerHTML")