'Adds a cookie to your current session.
"name" and "value" are required, "path", "domain" and "secure" are
optional'

@keyword
def add_cookie(self, name, value, path=None, domain=None, secure=None):

    new_cookie = {'name': name, 'value': value}
    if path:
        new_cookie['path'] = path
    if domain:
        new_cookie['domain'] = domain
    if (secure is not None):
        new_cookie['secure'] = secure
    self.browser.add_cookie(new_cookie)
