Skip to content

Commit

Permalink
webdriver: using get_cookie to check if the cookie exists
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsmedina committed Dec 11, 2015
1 parent aab296f commit 097dffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splinter/driver/webdriver/cookie_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __getitem__(self, item):
return self.driver.get_cookie(item)['value']

def __contains__(self, key):
return self.driver.is_cookie_present(key)
return self.driver.get_cookie(key) is not None

def __eq__(self, other_object):
cookies = {}
Expand Down

0 comments on commit 097dffe

Please sign in to comment.