title: Selenium XPath multiple attributes including text
body: <p>Here is the HTML I'm dealing with</p>
  
  <pre><code>&lt;a class="_54nc" href="#" role="menuitem"&gt;
      &lt;span&gt;
          &lt;span class="_54nh"&gt;Other...&lt;/span&gt;
      &lt;/span&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>I can't seem to get my XPath structured correctly to find this element with the link. There are other elements on the page with the same attributes as <code>&lt;a class="_54nc"&gt;</code> so I thought I would start with the child and then go up to the parent. </p>
  
  <p>I've tried a number of variations, but I would think something like this:</p>
  
  <pre><code>crawler.get_element_by_xpath('//span[@class="_54nh"][contains(text(), "Other")]/../..')
  </code></pre>
  
  <p>None of the things I've tried seem to be working. Any ideas would be much appreciated.</p>