Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
看起来您想要//a[contains(@href, 'History.aspx')]获取整个锚节点。如果你只想要href路径,那么//a[contains(@href, 'History.aspx')]/@href.
//a[contains(@href, 'History.aspx')]
href
//a[contains(@href, 'History.aspx')]/@href
希望有帮助。