added a log for xpath success