code: public void addSeleniumCookies(HttpResponse response) {
          CookieStore cookieStore = ensureResponseHasCookieStore(response);
          CookieConverter converter = getCookieConverter();
          Set<Cookie> browserCookies = getSeleniumHelper().getCookies();
          converter.copySeleniumCookies(browserCookies, cookieStore);
      }
docs: Adds Selenium cookies to response's cookie store.
  @param response response to which cookies must be added.