title: CSS/Xpath selector for an element with a certain class containing an element with certain text
body: <p>In the Scrapy shell for <a href="http://www.apkmirror.com/apk/airbnb-inc/airbnb/" rel="nofollow noreferrer">http://www.apkmirror.com/apk/airbnb-inc/airbnb/</a>, I'm trying to extract the links corresponding to the various releases of the AirBnB app:</p>
  
  <p><a href="https://i.stack.imgur.com/nLdYr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nLdYr.png" alt="enter image description here"></a></p>
  
  <p>As seen using Chrome's Inspect, the structure of this element is:</p>
  
  <p><a href="https://i.stack.imgur.com/VanJ0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VanJ0.png" alt="enter image description here"></a></p>
  
  <p>The children of the <code>listWidget</code> with class <code>appRow</code> contain links that I would like to extract. So, I would like to first select "The element with class <code>listWidget</code> which contains an element containing the text 'All version'".</p>
  
  <p>So far, I've come up with</p>
  
  <pre><code>In [4]: response.css('.listWidget').xpath('.//*[contains(text(), "All versions")]').extract()
  Out[4]: [u'&lt;div class="widgetHeader"&gt;All versions &lt;/div&gt;']
  </code></pre>
  
  <p>However, this selector goes 'too far down': I would like select the <code>listWidget</code> containing this element, not the element itself. How might I achieve that?</p>