Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- webdriver.get(url)
- webdriver.add_cookie({'name': 'sessionid', 'value': webdriver.session_id}) # Probably not necessary but just in case
- session = Session(webdriver.session_id, SessionStore().encode({}), datetime.now()+timedelta(days=70))
- session.save()
- webdriver.get(url)
- # expect this session to not need to login
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement