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

Method getWidth

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

Gets the width.

(self)

Source from the content-addressed store, hash-verified

592 return 0
593
594 def getWidth(self):
595 """
596 Gets the width.
597 """
598
599 if self.useUiAutomator:
600 return self.map['bounds'][1][0] - self.map['bounds'][0][0]
601 else:
602 try:
603 return int(self.map[self.widthProperty])
604 except:
605 return 0
606
607 def getUniqueId(self):
608 """

Callers 6

getCoordsMethod · 0.95
getPositionAndSizeMethod · 0.95
testGetWidthMethod · 0.80

Calls

no outgoing calls

Tested by 4

testGetWidthMethod · 0.64