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

Method set_window_rect

seleniumbase/fixtures/base_case.py:3616–3623  ·  view source on GitHub ↗
(self, x, y, width, height)

Source from the content-addressed store, hash-verified

3614 return self.driver.get_window_position()
3615
3616 def set_window_rect(self, x, y, width, height):
3617 self.__check_scope()
3618 if self.__is_cdp_swap_needed():
3619 self.cdp.set_window_rect(x, y, width, height)
3620 return
3621 self._check_browser()
3622 self.driver.set_window_rect(x, y, width, height)
3623 self.__demo_mode_pause_if_active(tiny=True)
3624
3625 def set_window_size(self, width, height):
3626 self.__check_scope()

Callers 5

maximize_windowMethod · 0.95
reset_window_sizeMethod · 0.95
set_window_sizeMethod · 0.45
set_window_positionMethod · 0.45
get_new_driverMethod · 0.45

Calls 4

__check_scopeMethod · 0.95
__is_cdp_swap_neededMethod · 0.95
_check_browserMethod · 0.95

Tested by

no test coverage detected