class BasicPath implements Path {

    public static Path textNode(String text) {
        BasicPath textEl  = builder().withXpath("text()").withXpathExplanation("text").build();
        return textEl.that(hasAggregatedTextEqualTo(text));
    }

    private  BasicPath(Optional<WebElement> underlying,
                      Optional<String> xpath,
                      List<ElementProperty> elementProperties,
                      Optional<String> xpathExplanation,
                      Optional<String> describedBy,
                      Optional<String> insideXpath,
                      Optional<String> alternateXpath
    );

}