@Test
public void textNodeTest() {

    Path el = element.after(textNode("abc"));
    NodeList nodes = findAllByXpath("<span>aaa</span><span>abc<span>1</span></span><span>2</span>", el);
    assertThat(nodes.getLength(), is(2));
    assertThat(getText(nodes.item(0)), equalTo("1"));
    assertThat(getText(nodes.item(1)), equalTo("2"));
}