如何为此找到xpath?

时间:2014-02-27 13:52:52

标签: xpath

以下代码:

<a href="profile?action=edit" class="btn btn-embossed btn-primary mtl pull-right"> Edit Details</a>

我到达这个xpath :(“// a [@ href ='profile?action = edit'”)

它表示无效的xpath。

任何人都可以告诉我吗?

由于

1 个答案:

答案 0 :(得分:0)

这应该有效:

//a[@href='profile?action=edit']