Use Selenium to download file by clicking “javascript:__doPostBack('LeaderBoard1$cmdCSV','')”
问题 There are a bunch of CSV files of baseball stats that I want to download via automation, which can be found at: https://www.fangraphs.com/leaders.aspx?pos=all&stats=bat&lg=all&qual=0&type=0&season=2020&month=0&season1=2020&ind=0&team=0&rost=0&age=0&filter=&players=0&startdate=2020-01-01&enddate=2020-12-31. The button to download the table as a CSV is labeled 'Export Data'. HTML: <div class="br_dby"> <span style="float: left"> <a href="javascript:ShowHide();">Show Filters</a> | <a href="