Hi all. I am having an issue trying to get PAD to click the link which would open a download option but it's not working. Attached are screenshots of the HTML behind the scenes and the javascript function I am attempting to call. I must say, if I put the code in the console window, it opens up the save as window as you would expect. Not sure if I'm missing anything here. The link is contained inside an iFrame, which I grab the link and populate in a new tab.
***FIRST SECTION OF CODE TO GET TO EXCEL**** (This works fine as you will see in 3rd image)

*** EXCEL LINK*****

Below is the function I am trying to execute (Line 27). As you can see, I am able to get the dropdown to show the Excel option (line 25).
document.querySelector('[title="Excel"]').click();
