Code example for Element

Methods: getTextContent

0
        super(contentMatcher, "an element with content text", "element content text"); 
    } 
 
    @Override 
    protected String featureValueOf(Element actual) {
        return actual.getTextContent();
    } 
 
    @Factory 
    public static Matcher<Element> withContent(Matcher<? super String> contentMatcher) {
        return new WithContentText(contentMatcher); 
    } 
 
    @Factory 
    public static Matcher<Element> withContent(String contentText) {
        return withContent(equalTo(contentText));
    } 
 
    @Factory 
	public static Matcher<Element> withBlankContent() {
		return withContent(isBlank());