title: XPath to select 1 element if one of two exists
body: <p>I want to select one element if one out of 2 exist while using this for 2 pages</p>
  
  <p>1st page (price with discount)</p>
  
  <pre><code>&lt;div class="price"&gt;
    &lt;span class="originalRetailPrice"&gt;$2,990.00&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="price"&gt;
        &lt;span class="salePrice"&gt;$1,794.00&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>or 2nd page (only one price)</p>
  
  <pre><code>&lt;div class="price"&gt;
    $298.00
  &lt;/div&gt;
  </code></pre>
  
  <p>I have used
   <code>//span[@class="originalRetailPrice"] | (//div[@class="priceBlock"])[1]</code> 
  but I get the price twice </p>
  
  <p>What I want is to select the first price when it's <code>class="originalRetailPrice"</code> or when it's <code>//div[@class="price"]/text()[1]</code></p>
  
  <p>So finally I want to make the selection to work on both pages </p>