SeleniumReality
SeleniumReality copied to clipboard
如何禁止js和图片加载
prefs = { 'profile.default_content_setting_values': { 'images': 2, 'javascript': 2 # 2即为禁用的意思 } } self.chrome_options.add_experimental_option('prefs', prefs) 报错: selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: cannot parse capability: goog:chromeOptions from invalid argument: unrecognized chrome option: prefs