title: I want the correct xpath for span and class
body: <p>I want to find <code>RetailDischarge</code> xpath for <code>span</code> and <code>class</code> from the following html:</p>
  
  <p>RetailDischarge</p>
  
  <p>My script is:</p>
  
  <pre><code>driver.findElement(By.xpath("//[@class='menu-item-title']/span[text()='RetailDischarge']")).click();
  </code></pre>
  
  <p>I got the error message: </p>
  
  <blockquote>
    <p>invalid selector: Unable to locate an element with the xpath
    expression</p>
  </blockquote>