code: def __getY(self):
          '''
          Gets the View Y coordinate
          '''
  
          if DEBUG_COORDS:
              print >>sys.stderr, "getY(%s %s ## %s)" % (self.getClass(), self.getId(), self.getUniqueId())
          y = 0
  
          if self.useUiAutomator:
              y = self.map['bounds'][0][1]
          else:
              try:
                  if GET_VISIBILITY_PROPERTY in self.map and self.map[GET_VISIBILITY_PROPERTY] == 'VISIBLE':
                      _y = int(self.map[self.topProperty])
                      if DEBUG_COORDS: print >>sys.stderr, "   getY: VISIBLE adding %d" % _y
                      y += _y
              except:
                  warnings.warn("View %s has no '%s' property" % (self.getId(), self.topProperty))
  
          if DEBUG_COORDS: print >>sys.stderr, "   getY: returning %d" % (y)
          return f __getY(self):
          '''
          Gets the View Y coordinate
          '''
  
          if DEBUG_COORDS:
              print >>sys.stderr, "getY(%s %s ## %s)" % (self.getClass(), self.getId(), self.getUniqueId())
          y = 0
  
          if self.useUiAutomator:
              y = self.map['bounds'][0][1]
          else:
              try:
                  if GET_VISIBILITY_PROPERTY in self.map and self.map[GET_VISIBILITY_PROPERTY] == 'VISIBLE':
                      _y = int(self.map[self.topProperty])
                      if DEBUG_COORDS: print >>sys.stderr, "   getY: VISIBLE adding %d" % _y
                      y += _y
              except:
                  warnings.warn("View %s has no '%s' property" % (self.getId(), self.topProperty))
  
          if DEBUG_COORDS: print >>sys.stderr, "   getY: returning %d" % (y)
          return y
docs: Gets the View Y coordinate