I had the problem to submit my form in a iframe with a button on the main page, I used XPATH to get my iframe and then select it and submit the form like this:
1 |
document.evaluate('//iframe', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.contentWindow.document.FORM.submit(); |