title: How to use two xpath inside xpath contains function
body: <p>I have one dropdown box like so:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;div class="dropdownlist"&gt;
  
  &lt;select name="childVariationASIN" style="width:180px;"&gt; 
  
  
  &lt;option value="" selected="selected" title="Select"&gt;Select&lt;/option&gt;
  &lt;option value="B002VYJB5S" title="59 mm :: 101/13 Gold-Cream/Brown Gradient"&gt;Gold-Cre...&lt;/option&gt; 
  &lt;option value="B00193CBMM" title="59 mm :: 103/11 Gunmetal-Grey/Grey Gradient"&gt;Gunmetal...&lt;/option&gt; 
  &lt;option value="B003ENRWHE" title="59 mm :: 103/13 Gunmetal-Grey/Brown"&gt;Gunmetal...&lt;/option&gt; 
  
  &lt;/select&gt;
  &lt;/div&gt;
  &lt;div id='selected_product_name'&gt;
  Gold-Cream/Brown Gradient
  &lt;div&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And have another div which displays product names, e.g. "Gold-Cream/Brown Gradient".</p>
  
  <p>Now I need to get the option value="B002VYJB5S" by defining XPath expression which checks that product name div against the option title attribute. Something like this:</p>
  
  <pre><code>&lt;xpath expression="//select[@name='childVariationASIN']/option[@value!='' and @title[contains(//div[@id='selected_product_name']/text()) " &gt;
  </code></pre>
  
  <p>This "contains" part dosen't work. How can I get that corresponding option value "B002VYJB5S"?</p>
  
  <p>and i am not sure about that xpath expression is correct one </p>
  
  <p>Thanks 
  Ram</p>