code: def findViewWithTextOrRaise(self, text, root="ROOT"):
          '''
          Finds the View or raise a ViewNotFoundException.
  
          @return: the View found
          @raise ViewNotFoundException: raise the exception if View not found
          '''
  
          if DEBUG:
              print >>sys.stderr, "findViewWithTextOrRaise(%s, %s)" % (text, root)
          view = self.findViewWithText(text, root)
          if view:
              return view
          else:
              raise ViewNotFoundException("text", text, rootf findViewWithTextOrRaise(self, text, root="ROOT"):
          '''
          Finds the View or raise a ViewNotFoundException.
  
          @return: the View found
          @raise ViewNotFoundException: raise the exception if View not found
          '''
  
          if DEBUG:
              print >>sys.stderr, "findViewWithTextOrRaise(%s, %s)" % (text, root)
          view = self.findViewWithText(text, root)
          if view:
              return view
          else:
              raise ViewNotFoundException("text", text, root)
docs: Finds the View or raise a ViewNotFoundException.
  
          @return: the View found
          @raise ViewNotFoundException: raise the exception if View not found