Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

htmlagilitypack select <a> tag with specified inner text

i need to select a tag that contains an innertext i specify. can anyone help me with the xpath query ie <a href="#">wake up</a>. So if i pass wake to the xpath, it should select this a link

thanks

like image 798
Smith Avatar asked Jan 02 '12 12:01

Smith


1 Answers

The XPath is simply //a[starts-with(., 'wake')].

like image 90
Martin Honnen Avatar answered Oct 11 '22 20:10

Martin Honnen