Hello. I deal with a web page that contains subframes i.e. frameset doctyped document. When I use below code
Code JavaScript:
$('/html/frameset')
it works accurately but for the topmost window. Now I need to work in subframe scope and use xpath selectors. I tried
Code JavaScript:
$(window.parent.frames[1].document)
to reach subframe document but dont know how to use xpath selectors with jquery for that frame document.
Code JavaScript:
$(window.parent.frames[1].document).find('/html/body/p')
Abıve code didnt work , by the way. How can I solve this problem?

Thanks in advance.