We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53188a1 + 4eb3771 commit 7db2affCopy full SHA for 7db2aff
AppiumLibrary/keywords/_element.py
@@ -445,6 +445,17 @@ def get_element_size(self, locator):
445
self._info("Element '%s' size: %s " % (locator, element_size))
446
return element_size
447
448
+ def get_element_rect(self, locator):
449
+ """Gets dimensions and coordinates of an element
450
+
451
+ Key attributes for arbitrary elements are `id` and `name`. See
452
+ `introduction` for details about locating elements.
453
+ """
454
+ element = self._element_find(locator, True, True)
455
+ element_rect = element.rect
456
+ self._info("Element '%s' rect: %s " % (locator, element_rect))
457
+ return element_rect
458
459
def get_text(self, locator):
460
"""Get element text (for hybrid and mobile browser use `xpath` locator, others might cause problem)
461
0 commit comments