MCPcopy
hub / github.com/AirtestProject/Poco / get_size

Method get_size

poco/proxy.py:815–823  ·  view source on GitHub ↗

Get the UI element size in ``NormalizedCoordinate`` system. Returns: 2-:obj:`list`: size [width, height] in range of 0 ~ 1.

(self)

Source from the content-addressed store, hash-verified

813
814 @volatile_attribute
815 def get_size(self):
816 """
817 Get the UI element size in ``NormalizedCoordinate`` system.
818
819 Returns:
820 2-:obj:`list`: size [width, height] in range of 0 ~ 1.
821 """
822
823 return self.attr('size')
824
825 @volatile_attribute
826 def get_bounds(self):

Callers 3

pinchMethod · 0.95
get_positionMethod · 0.95
get_boundsMethod · 0.95

Calls 1

attrMethod · 0.95

Tested by

no test coverage detected