Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/343.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在python selenium中设置chrome设置?_Python_Selenium_Selenium Chromedriver - Fatal编程技术网

如何在python selenium中设置chrome设置?

如何在python selenium中设置chrome设置?,python,selenium,selenium-chromedriver,Python,Selenium,Selenium Chromedriver,我想在chromedriver中接受第三方cookie,默认情况下此设置为关闭。默认情况下,如何使用chromedriver接受第三方Cookie driver_tab = webdriver.Chrome(executable_path=driver_path) for cookie in p_cookies: driver_tab.add_cookie(cookie) p_cookies是一个目录列表 您可以在driver.get(url)之后使用driver.get\u cook

我想在chromedriver中接受第三方cookie,默认情况下此设置为关闭。默认情况下,如何使用chromedriver接受第三方Cookie

driver_tab = webdriver.Chrome(executable_path=driver_path)
for cookie in p_cookies:
    driver_tab.add_cookie(cookie)
p_cookies是一个目录列表
您可以在driver.get(url)之后使用
driver.get\u cookies()