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

Method get_element_size

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

Source from the content-addressed store, hash-verified

1606 return coordinates
1607
1608 def get_element_size(self, selector, timeout=None):
1609 if not timeout:
1610 timeout = settings.SMALL_TIMEOUT
1611 element_rect = self.get_element_rect(selector, timeout=timeout)
1612 coordinates = {}
1613 coordinates["width"] = element_rect["width"]
1614 coordinates["height"] = element_rect["height"]
1615 return coordinates
1616
1617 def get_element_position(self, selector, timeout=None):
1618 if not timeout:

Callers

nothing calls this directly

Calls 1

get_element_rectMethod · 0.95

Tested by

no test coverage detected