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
<a href="#">wake up</a>
thanks
The XPath is simply //a[starts-with(., 'wake')].
//a[starts-with(., 'wake')]
One way (it matches case sensitive):
//a[contains(text(), 'wake')]