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