code: func (p *WebPage) AddCookie(cookie *http.Cookie) (bool, error) {
  	var resp struct {
  		ReturnValue bool `json:"returnValue"`
  	}
  	req := map[string]interface{}{"ref": p.ref.id, "cookie": encodeCookieJSON(cookie)}
  	if err := p.ref.process.doJSON("POST", "/webpage/AddCookie", req, &resp); err != nil {
  		return false, err
  	}
  	return resp.ReturnValue, nil
  }
docs: // AddCookie adds a cookie to the page.
  // Returns true if the cookie was successfully added.