title: TypeError: Failed to execute 'evaluate' on 'Document': The result is not a node set, and therefore cannot be converted using Xpath through Selenium
body: <p>Part of page source:</p>
  
  <pre><code>&lt;span style="display:block; overflow:hidden; white-space: nowrap"&gt;Gi2/0/20&lt;/span&gt;
  </code></pre>
  
  <p>Parts of the code:</p>
  
  <pre><code>from selenium import webdriver
  ...
  driver = webdriver.Chrome()
  ...
  IP_CLICK = browser.find_element_by_xpath('//span[@style="display:block; overflow:hidden; white-space: nowrap"]/text()="Gi2/0/20"').click()
  </code></pre>
  
  <p>I am trying to select an element in my web page with the <code>xpath</code> expression, but I'm getting the following error:</p>
  
  <pre><code>InvalidSelectorException: invalid selector: Unable to locate an element with the xpath expression //span[@style="display:block; overflow:hidden; white-space: nowrap"]/text()="Gi2/0/20" because of the following error:
  </code></pre>
  
  <blockquote>
    <p>TypeError: Failed to execute 'evaluate' on 'Document': The result is not a node set, and therefore cannot be converted to the desired type.
    (Session info: chrome=72.0.3626.121)
    (Driver info: chromedriver=73.0.3683.20 (8e2b610813e167eee3619ac4ce6e42e3ec622017),platform=Windows NT 6.1.7601 SP1 x86_64)</p>
  </blockquote>