return getText() != null;
}
protected void verifyXPath() throws XPathException, StepFailedException {
final Page currentResponse = getContext().getCurrentResponse();
final XPathHelper xpathHelper = getContext().getXPathHelper();
if (isComparingPathAndValue()) {
final String actualValue = xpathHelper.stringValueOf(currentResponse, getXpath());
if (!verifyText(actualValue)) {
throw new StepFailedException("Wrong result for xpath >" + fXpath + "<", getText(), actualValue, this);
}
}
else
{
final Object singleNode = xpathHelper.selectFirst(currentResponse, getXpath());
if (singleNode == null) {
throw new StepFailedException("xpath test: " + fXpath + " matched no nodes", this);
}
else if (Boolean.FALSE.equals(singleNode))
{