I have the following path to a button within an iframe, i.e.:
div.iframe-container > iframe#builder-frame > html > body > div#header > ul.header-toolbar.hide > li > span.deploy-button-group.button-group > a#btn-deploy.deploy-button
Using the above path, I'm attempting to use jQuery to get to the a#btn-deploy.deploy-button
in order to trigger a click event on this button within my iframe.
I'm unsure how to achieve this using jQuery, in order to get to this button from the parent window, within my javascript code.
I have tried the following but to no avail, i,e,:
$('#builder-frame').contents().find('#btn-deploy').trigger("click");
I understand that this maybe a duplicate but it's actually the path to get to my iframe button that I require assistance with.