class ElementProperties {

    public static ElementProperty hasAttribute(String attribute, String value) {
        return new ElementProperty() {
            @Override
            public String toXpath() {
                return XpathUtils.hasAttribute(attribute, value);
            }

            public String toString() {
                return String.format("has %s: \"%s\"", attribute, value);
            }
        };
    }

    private  ElementProperties();

}