How to inject cookies in a test with Python-UnitTest?

How to inject cookies in a test with Python-UnitTest?

Hi Dipen,

To add cookies on your test, please refer to the sample code below:

driver.get("http://www.example.com")
driver.add_cookie({"name": "key", "value": "value"})