First of all
you dont have to use open() at all. You only have to click the button and it should download. However you might want to wait a few seconds after the click to allow it to download.
find_element_by_id
returns None. And you cannot set the filename to None. Second of all...you dont have to use open() at all. You only have to click the button and it should download. However you might want to wait a few seconds after the click to allow it to download.
browser.find_element_by_id('cph_InnerContainerRight_C001_lnkExpToCSV').click() time.sleep(10)Just tested with this ant it works fine.
Recommended Tutorials: