In theory, if I copy all of the cookies from selenium's webdriver
object to requests.Session
object, would requests be able to continue on as if the session was not interrupted?
Specifically, I am interested in writing automation where I get to specific location on the webpage via selenium, then pass on a certain download link to requests
, which would download and verify specific bytes out of the file, and sometimes a full file. (The value of the file downloaded would change based on my interaction in selenium)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…