Get the size of the element. Returns: The width and height of the element. Example: size = element.size
(self)
| 333 | |
| 334 | @property |
| 335 | def size(self) -> dict: |
| 336 | """Get the size of the element. |
| 337 | |
| 338 | Returns: |
| 339 | The width and height of the element. |
| 340 | |
| 341 | Example: |
| 342 | size = element.size |
| 343 | """ |
| 344 | size = self._execute(Command.GET_ELEMENT_RECT)["value"] |
| 345 | new_size = {"height": size["height"], "width": size["width"]} |
| 346 | return new_size |
| 347 | |
| 348 | def value_of_css_property(self, property_name) -> str: |
| 349 | """Get the value of a CSS property. |
no test coverage detected