title: How to get a specific text out from span class in Python (selenium)
body: <p>I have the following span class:</p>
  
  <pre><code>&lt;span class="k-pager-info k-label"&gt;1 - 25 of 93995 items&lt;/span&gt;
  </code></pre>
  
  <p>and its <strong>Xpath</strong> is
  <code>//*[@id="registerGrid"]/div[3]/span</code></p>
  
  <p>I would like to get the number 93995 out.</p>
  
  <p>I have tried the following:</p>
  
  <p><code>driver.findElement(By.xpath("""//*[@id="registerGrid"]/div[3]/span""")).getText()</code></p>
  
  <p>Traceback (most recent call last):</p>
  
  <pre><code>  File "&lt;pyshell#47&gt;", line 1, in &lt;module&gt;
      driver.findElement(By.xpath("""//*[@id="registerGrid"]/div[3]/span""")).getText()
  AttributeError: 'WebDriver' object has no attribute 'findElement'
  </code></pre>
  
  <p>What shall I do then?</p>