title: How to get text, using Selenium Python XPATH
body: <p>I try to find and get element(text), using</p>
  
  <p><a href="https://i.stack.imgur.com/vhlfT.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <pre><code>elem = driver.find_element(By.XPATH,'//*[@id="t3_9kxrv6"]/div/div/div[3]/span/h2')
  </code></pre>
  
  <p>If I print it, I get:</p>
  
  <pre><code>&lt;selenium.webdriver.remote.webelement.WebElement (session="2c3430395624712686d8cbfe1824c18e", element="0.06192509533309787-1")&gt;
  </code></pre>
  
  <p>and I want:  "The problems of a dutchman in China."</p>