class ElementProperties {

    public static ElementProperty hasTextContaining(String txt) {
        return new ElementProperty() {
            @Override
            public String toXpath() {
                return XpathUtils.textContains(txt);
            }

            public String toString() {
                return "has text containing \"" + txt + "\"";
            }
        };
    }

    private  ElementProperties();

}