title: Is there a way of getting outerHTML of outerHTML of a web element using Selenium in Python?
body: <p>I am using this for get a row in a table:</p>
  
  <pre><code>element = browser.find_element_by_xpath("//*[contains(text(),'Sample Text')]")
  html_text = element.get_attribute('outerHTML')
  </code></pre>
  
  <p>this gives me <code>&lt;td&gt;...&lt;/td&gt;</code> but I want <code>&lt;tr&gt;&lt;td&gt;...&lt;/td&gt;&lt;td&gt;...&lt;/td&gt;&lt;/tr&gt;</code></p>
  
  <p>How do I do this?</p>