code: def findViewsWithAttribute(self, attr, val, root="ROOT"):
          '''
          Finds the Views with the specified attribute and value.
          This allows you to see all items that match your criteria in the view hierarchy
  
          Usage:
            buttons = v.findViewsWithAttribute("class", "android.widget.Button")
  
          '''
  
          return self.__findViewsWithAttributeInTree(attr, val, rootf findViewsWithAttribute(self, attr, val, root="ROOT"):
          '''
          Finds the Views with the specified attribute and value.
          This allows you to see all items that match your criteria in the view hierarchy
  
          Usage:
            buttons = v.findViewsWithAttribute("class", "android.widget.Button")
  
          '''
  
          return self.__findViewsWithAttributeInTree(attr, val, root)
docs: Finds the Views with the specified attribute and value.
          This allows you to see all items that match your criteria in the view hierarchy
  
          Usage:
            buttons = v.findViewsWithAttribute("class", "android.widget.Button")