title: XPath to find an element whose attribute contains a text, case-insensitively?
body: <pre><code>    &lt;root&gt;
  // other nodes
      &lt;a href="/PatternFramework/Pages/LogOut.aspx?np=/sites/novatestsite/Home.aspx" slick-uniqueid="92"&gt;Sign out&lt;/a&gt;
      &lt;/root&gt;
  </code></pre>
  
  <p>How to write an xpath which returns the <code>a</code> tag whose <code>href</code> contains "logout.aspx"?</p>
  
  <p>For instance something like </p>
  
  <pre><code>//a[@href[contains[., "logout.aspx"]]
  </code></pre>