Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7b09fe

Browse files
committed
Merge pull request baijum#31 from brunogabuzomeu/patch-1
Cookies mechanism changed
2 parents 52feecd + b6d23cd commit f7b09fe

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/navigating.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,9 @@ domain that the cookie will be valid for:
234234
driver.get("http://www.example.com")
235235

236236
# Now set the cookie. This one's valid for the entire domain
237-
cookie = {"key": "value"})
237+
cookie = {‘name’ : ‘foo’, ‘value’ : ‘bar’}
238238
driver.add_cookie(cookie)
239239

240240
# 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)
241+
driver.get_cookies()
242+

0 commit comments

Comments
 (0)