title: python selenium how to copy text?
body: <p>How to copy text with selenium xpath? 
  When I writing  </p>
  
  <pre><code>driver.find_elements_by_xpath("//div[@class='rankingItem-value js-countable']").text
  </code></pre>
  
  <p>I get next error: </p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 15, in &lt;module&gt;
  AttributeError: 'list' object has no attribute 'text'
  </code></pre>
  
  <p>full code:</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  import time
  driver = webdriver.Firefox()
  driver.get('https://www.similarweb.com/')
  driver.find_element_by_id("js-swSearch-input").send_keys("www.pornhub.com")
  driver.find_element_by_css_selector("button.swSearch-submit").click()
  #self.driver.implicitly_wait(30)
  time.sleep(10)
  
  
  content = driver.find_elements_by_xpath("//div[@class='rankingItem-value js-countable']").text
  print(content)
  </code></pre>
  
  <p>I need to copy site's global rank to a table, "22" one. How?</p>