docs: 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;
      }