Skip to content

Instantly share code, notes, and snippets.

View bmulholland's full-sized avatar

Brendan Mulholland bmulholland

View GitHub Profile
@bmulholland
bmulholland / python_webdriver_addcookie_debug.py
Created June 18, 2012 22:20
Python Webdriver add_cookie Requires Secure=False
========================================================================================= test session starts =========================================================================================
platform darwin -- Python 2.7.1 -- pytest-2.2.3 -- /usr/bin/python
collected 4 items
scripts/checkout_test.py:58: CheckoutTest.test_add_product
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> PDB set_trace (IO-capturing turned off) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> /.../modules/pages/account/login_page.py(130)login()
-> self.driver.add_cookie({"name": "session", "value": sessionid, "path": "/", "secure": False})
(Pdb) c