I am using html agility for below task.
I am wondering what can be xpath query to get all the nodes containing a string search term. It should search both attributes and innertext of elements.
<HTML>
<BODY >
<H1>Mr T for president</H1>
<div class="test">We believe the new president should be</div>
<div id="test">the awsome Mr T</div>
<div>
<H2>Mr T replies:</H2>
<p>test paragraph</p>
<p class="test">for Mr T</p>
</div>
</BODY>
</HTML>
say I want to get all html elements have test either in their attributes or innertext?