I am attempting to create an XPath that will point to the href
attribute of a button (handling pagination).
My XPath is as follows:
//a[contains(@class, 'h-data-pagination__next')]//@href
Which returns the following URL:
http://www.bestcolleges.comhttp//www.bestcolleges.com/database/?pg=2
The issue is that the XPath seems to be adding the new URL attribute to the old attribute instead of replacing it.