Pass driver ChromeOptions and DesiredCapabilities?

后端 未结 5 1419
盖世英雄少女心
盖世英雄少女心 2020-12-05 05:19

The new Google chrome update causes this message in the browser \"You are using an unsupported command-line flag: --ignore-certificate-errors. Stability and security will su

5条回答
  •  忘掉有多难
    2020-12-05 05:42

    may be try this:

    chromeOptions = webdriver.ChromeOptions()
    prefs = {"profile.managed_default_content_settings.images":2}
    chromeOptions.add_experimental_option("prefs",prefs)
    driver = webdriver.Chrome(chrome_options=chromeOptions)
    

    related info can found here: http://nullege.com/codes/search/selenium.webdriver.ChromeOptions.add_experimental_option

提交回复
热议问题