Ejemplo n.º 1
0
 async def get_rect(self):
     location = await self._request(url="/location", method="GET")
     width = await self.get_css_value("width")
     height = await self.get_css_value("height")
     return Rect(location["x"], location["y"], px_to_int(width), px_to_int(height))
Ejemplo n.º 2
0
 async def get_rect(self):
     location = await self._request(url='/location', method='GET')
     width = await self.get_css_value('width')
     height = await self.get_css_value('height')
     return Rect(location['x'], location['y'], px_to_int(width),
                 px_to_int(height))