I have to access a Secure Email site to retrieve some data. I have a secure link that is emailed to me as downloadable HTML. I can load the HTML from the file into the TMSFNCWebBrowser. I neet to deal with two inputs:
I tried that and it did not work. It works on a normal webpage but not here. The webpage is very complex with the inputs being in tables within a frame.
The button is also in a table row of this complex structure. I can click the button on a normal page using document.querySelector("input[type=submit]").click() But I can't get it to work here.
I am emailed an HTML file which the program opens in the browser. The downloaded HTML then accesses the secure webpage where I need to enter the password and press the button. I can manually enter the password and press the button but I can't get the program to do it. Once I have submitted the form, I can access the data I need from the inner HTML of the returned document.
The entire process is non-interactive so I can try getting it to work with an idHTTP. But for more secure operations, it is easier to just open a TMS web browser to get the data. I also tried using Delphi's TEdgeBrowser and it has the same issue.