My webpage contains several <frame>
. And I need to find the frame which contains //a[@id='edit']
.
So I tried //frame[//a[@id='edit']]
but this xpath return 0 element.
<frame>
...
</frame>
<frame>
#document
<html>
<head></head>
<body>
...
<a id='edit'>Edit</a> <!-- Added closing tag -->
...
</body>
</html>
</frame>
<frame>
...
</frame>
Any idea?