Selenium: Why my get_cookies() method returned a list in Python?

后端 未结 3 608
礼貌的吻别
礼貌的吻别 2021-02-04 10:10

Below is my script:

# -*- coding: UTF-8 -*-
from selenium import webdriver

driver = webdriver.Firefox()

driver.get(\"http://www.google.com\")

all_cookies = dr         


        
3条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 10:35

    I understand that get_cookies() returns a list of dictionaries, each dict holding the properties for each cookie found:

    http://selenium-python.readthedocs.io/navigating.html#cookies

提交回复
热议问题