from selenium.webdriver.chrome.options import Options
options = Options()
prefs = {
    'profile.default_content_setting_values': {
        'images': 2,
        'permissions.default.stylesheet': 2,
        'javascript': 2
    }
}
options.add_experimental_option('prefs', prefs)
browser = Chrome(executable_path=driver_path, options=options)

相关文章:

  • 2021-11-06
  • 2022-12-23
  • 2021-10-19
  • 2021-11-28
  • 2021-11-19
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-28
  • 2021-07-11
  • 2021-08-30
  • 2022-12-23
  • 2021-11-16
  • 2021-12-24
相关资源
相似解决方案