How do I get the Xpath that returns:
//www.example.com
With the following DOM:
<a id="myId" href="//www.example.com">
Click here</a>
How do I get the Xpath that returns:
//www.example.com
With the following DOM:
<a id="myId" href="//www.example.com">
Click here</a>
//a[@id='myId']/@href
That should work, just implement it into whatever language you're using xpath with.