Assert.assertEquals(value, element.asText());
}
@Override
public void memorizeElementTextContent(String id, ObservedString observation) {
ObservedStringImpl observationImpl = (ObservedStringImpl) observation;
HtmlElement element = htmlPage().getHtmlElementById(id);
String content = element.asText();
log("Memorizing content of element '" + id + "' ('" + content
+ "') as observation " + observationImpl.id());
observationImpl.setValue(content);
}