profile = FirefoxProfile()
profile.set_preference('browser.migration.version', 9001)
profile.set_preference('permissions.default.image', 2)
driver = webdriver.Firefox(profile)

 新版火狐把关闭图片的选项移除了,所以需要加一步操作。

相关文章:

  • 2021-09-28
  • 2022-01-30
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2021-09-14
  • 2022-01-11
  • 2022-03-01
猜你喜欢
  • 2022-12-23
  • 2022-01-06
  • 2021-08-12
  • 2021-12-10
  • 2022-12-23
  • 2021-11-29
  • 2021-05-25
相关资源
相似解决方案