MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / getHeight

Method getHeight

src/com/dtmilano/android/viewclient.py:581–592  ·  view source on GitHub ↗

Gets the height.

(self)

Source from the content-addressed store, hash-verified

579 return None
580
581 def getHeight(self):
582 """
583 Gets the height.
584 """
585
586 if self.useUiAutomator:
587 return self.map['bounds'][1][1] - self.map['bounds'][0][1]
588 else:
589 try:
590 return int(self.map[self.heightProperty])
591 except:
592 return 0
593
594 def getWidth(self):
595 """

Callers 6

getCoordsMethod · 0.95
getPositionAndSizeMethod · 0.95
testGetHeightMethod · 0.80

Calls

no outgoing calls

Tested by 4

testGetHeightMethod · 0.64