selenium: chrome: download file

1. 

prefs = {'profile.default_content_settings.popups': 0, 'download.default_directory': filepath}
OPTIONS.add_experimental_option('prefs', prefs)
posted @ 2023-09-12 15:38  胖妞麻麻  阅读(46)  评论(0)    收藏  举报