Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbbdfd7 commit b6d23cdCopy full SHA for b6d23cd
source/navigating.rst
@@ -234,10 +234,9 @@ domain that the cookie will be valid for:
234
driver.get("http://www.example.com")
235
236
# Now set the cookie. This one's valid for the entire domain
237
- cookie = {"key": "value"})
+ cookie = {‘name’ : ‘foo’, ‘value’ : ‘bar’}
238
driver.add_cookie(cookie)
239
240
# And now output all the available cookies for the current URL
241
- all_cookies = driver.get_cookies()
242
- for cookie_name, cookie_value in all_cookies.items():
243
- print("%s -> %s", cookie_name, cookie_value)
+ driver.get_cookies()
+
0 commit comments