Set<Cookie> getAllCookies(String url) {
        Set<Cookie> cookieSet = new HashSet();
        List<String> domains;
        try {
            domains = getDomainsFromUrl(new URL(url));
        } catch (MalformedURLException e) {
            throw new SelendroidException("Error while adding cookie. " + e);
        }

        for (String domain : domains) {
            cookieSet.addAll(getCookies(domain));
        }
        return cookieSet;
    }
Gets all cookies associated to a URL.

@param url
@return A string containing comma separated cookies
selendroid-server/src/main/java/io/selendroid/server/model/SessionCookieManager.java