class ElementProperties {

    public static ElementProperty hasClasses(String... cssClasses) {
        return new ElementProperty() {
            @Override
            public String toXpath() {
                return XpathUtils.hasClasses(cssClasses);
            }

            public String toString() {
                String classesAsList = String.join(", ", cssClasses);
                return "has classes [" + classesAsList + "]";
            }
        };
    }

    private  ElementProperties();

}