I want to download a file from a website using Java. The website URL is
https://340bopais.hrsa.gov
Once you hit the URL, you will see a menu 'Reports/Files'. Click that. Now the URL will become:
https://340bopais.hrsa.gov/reports
Then click 'Daily Reports'. Then click 'Covered Entity Daily Report'. A file will be downloaded to your machine.
I want to download this file using a Java program. I inspected the button 'Covered Entity Daily Report' and found the following HTML where a Javascript script is called. How can I click on this button using a Java program?
> <a id="ContentPlaceHolder1_lnkCEDailyReport" class="btn btn-primary
> btn-lg btn-block " title=" Click here to download the Covered Entity
> Daily Report"
> href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$lnkCEDailyReport','')">Covered Entity Daily Report</a>