MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / get_element_position

Method get_element_position

seleniumbase/core/sb_cdp.py:1617–1624  ·  view source on GitHub ↗
(self, selector, timeout=None)

Source from the content-addressed store, hash-verified

1615 return coordinates
1616
1617 def get_element_position(self, selector, timeout=None):
1618 if not timeout:
1619 timeout = settings.SMALL_TIMEOUT
1620 element_rect = self.get_element_rect(selector, timeout=timeout)
1621 coordinates = {}
1622 coordinates["x"] = element_rect["x"]
1623 coordinates["y"] = element_rect["y"]
1624 return coordinates
1625
1626 def get_gui_element_rect(self, selector, timeout=None):
1627 """(Coordinates are relative to the screen. Not the window.)"""

Callers

nothing calls this directly

Calls 1

get_element_rectMethod · 0.95

Tested by

no test coverage detected