@fluent<EOL><INDENT>def add_cookie(self, cookie_dict):<DEDENT>
if not isinstance(cookie_dict, dict):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if not cookie_dict.get(<EOL>'<STR_LIT:name>', None<EOL>) or not cookie_dict.get(<EOL>'<STR_LIT:value>', None):<EOL><INDENT>raise KeyError('<STR_LIT>')<EOL><DEDENT>self._execute(Command.ADD_COOKIE, {'<STR_LIT>': cookie_dict})<EOL>
Set a cookie.

        Support:
            Web(WebView)

        Args:
            cookie_dict: A dictionary contain keys: "name", "value",
                ["path"], ["domain"], ["secure"], ["httpOnly"], ["expiry"].

        Returns:
            WebElement Object.