先手动登陆,按F12查询cookie,找到对应的键值对
#注入cookie
self.driver.delete_all_cookies()
cookie = {'name': 'sessionid',
'value': '*********************'}
self.driver.add_cookie(cookie)
先手动登陆,按F12查询cookie,找到对应的键值对
#注入cookie
self.driver.delete_all_cookies()
cookie = {'name': 'sessionid',
'value': '*********************'}
self.driver.add_cookie(cookie)