webdriervAPI(操作cookie)
2021-05-19 14:28
标签:use delete api bdr 获得 selenium webdriver 获取 import from selenium import webdriver driver = webdriver.Chorme() driver.get("http://www.baidu.com") 获得cookie信息 cookie = driver.get_cookies() 获取cookie信息中key为name的cookie信息 cookic = driver.get_cookie("name") 王cookie中添加cookie信息 driver.add_cookie({"name":"username", "value":"jack"}) 删除指定的cookie信息 driver.delete_cookie("name") 删除浏览器所有cookie信息 driver.delete_all_cookies() webdriervAPI(操作cookie) 标签:use delete api bdr 获得 selenium webdriver 获取 import 原文地址:https://www.cnblogs.com/97xiaolai/p/11707605.html
文章标题:webdriervAPI(操作cookie)
文章链接:http://soscw.com/index.php/essay/87669.html