(self, key, path='/', domain='')
| 61 | return (value,) |
| 62 | |
| 63 | def remove_cookie(self, key, path='/', domain=''): |
| 64 | if not key in self.cookies.keys(): |
| 65 | return |
| 66 | self.app_instance.execute_javascript( """ |
| 67 | var sKey = "%(sKey)s"; |
| 68 | var sPath = "%(sPath)s"; |
| 69 | var sDomain = "%(sDomain)s"; |
| 70 | document.cookie = encodeURIComponent(sKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT" + (sDomain ? "; domain=" + sDomain : "") + (sPath ? "; path=" + sPath : ""); |
| 71 | """%{'sKey': key, 'sPath': path, 'sDomain': domain} ) |
| 72 | |
| 73 | def set_cookie(self, key, value, expiration='Infinity', path='/', domain='', secure=False): |
| 74 | """ |
nothing calls this directly
no test coverage detected