Need to get an xpath expression for the span inside the iframe. Need Help in getting XPath expression for span inside an Iframe popup.
i can get the iframe but getti
You need to set the scope of the xpath to the iframe's contentDocument property:
var iframe = document.getElementsByTagName("iframe")[0]; var theFirstSpan = document.evaluate('//span', iframe.contentDocument, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue