title: XPATH using contains and following-sibling
body: <p>I know there are allot of posts about this but XPath seems to be my weak point when it comes to web scraping. The below does not seems to work even though i'm convinced its correct. </p>
  
  <p>Basically i'm looking for a td that contains the text "Pivot Point 2nd Level Resistance" and taking the following sibling td value. What went wrong? </p>
  
  <blockquote>
    <p>string RS2 =
    doc.DocumentNode.SelectSingleNode("//td[contains(text(),'Pivot Point
    2nd Level Resistance')]/following-sibling::td[1]").InnerText</p>
  </blockquote>
  
  <p>Below is what i'm scraping:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;tr data-ng-repeat="point in cheatSheetData | filter:categoryFilter" data-ng-class="point.class" class="high support-resistance"&gt;
                  &lt;td class="label support-resistance highlight" data-ng-class="{'highlight': point.labelSupportResistance}"&gt;
                      Pivot Point 2nd Level Resistance
                  &lt;/td&gt;
                  &lt;td class="value"&gt;
                      9.43
                  &lt;/td&gt;
                  &lt;td class="label pivot-points" data-ng-class="{'highlight': point.labelTurningPoints}"&gt;
                      
                  &lt;/td&gt;
  &lt;/tr&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>EDIT: Looks like the website data i'm attempting to scrape has changed to load after the fact so the Node is not available during my scrape. I tested this by going the route of setting up Phantom &amp; Selenium for a headless browser and it works fine. This is not the route I want to take but the issue has been found.</p>