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