Can request cookie in python be used by selenium?

recently, when logging in, consider whether the cookie in request can be used by selenium?

Oct.11,2021

Yes. Reference: python.readthedocs.io/navigating.html-sharpcookies" rel=" nofollow noreferrer "> selenium-python:cookies

cookie = {'key': 'value'}
driver.add_cookie(cookie)
Menu