how to retrive outer text in element in dom i selenium 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')