5
<root>
// other nodes
<a href="/PatternFramework/Pages/LogOut.aspx?np=/sites/novatestsite/Home.aspx" slick-uniqueid="92">Sign out</a>
</root>
如何編寫一個xpath,它返回標籤,其href
包含「logout.aspx」?XPath查找其屬性包含文本的元素,不區分大小寫?
例如像
//a[@href[contains[., "logout.aspx"]]
這是誰?哪個xpath提供程序使用? – 2012-03-07 15:47:39
試試這裏:http://www.bit-101.com/xpath/ - 它不會選擇一個標籤。 – 2012-03-07 15:54:10
bit-101.com/xpath是2006年以來的老工具。使用http://xpath.online-toolz.com/tools/xpath-editor.php – 2012-03-07 16:02:07