I am using excel vba code to log-in to a secured website using a user name and password, then enter an account number from an excel list and click the submit button. My code works for all of those tasks. However the next thing I want to do is click a button that prompts a download. There are two identical download buttons on the page and I could use either to get my text file. The code for the download button looks a little different than the other buttons I have to click to get to this point. Mainly, the download button does not have a code name.
The source code for the button looks like this:
<form name="ICS" method="POST" action="downloadIntervalData.do">
<p>
<input type="SUBMIT" value="Download">
<input type="SUBMIT" value="Back" name="back" onclick="goBack();">
</p>
<input type="HIDDEN" name="accountID" value="9c925642b927788c315ac2a1687187ee2e5101ff82293082">
<input type="SUBMIT" value="Download">
<input type="SUBMIT" value="Back" name="back" onclick="goBack();">
</form>
Thanks in advance for the help!!
Bookmarks