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

Method set_window_size

seleniumbase/fixtures/base_case.py:3625–3635  ·  view source on GitHub ↗
(self, width, height)

Source from the content-addressed store, hash-verified

3623 self.__demo_mode_pause_if_active(tiny=True)
3624
3625 def set_window_size(self, width, height):
3626 self.__check_scope()
3627 if self.__is_cdp_swap_needed():
3628 position = self.cdp.get_window_position()
3629 x = position["x"]
3630 y = position["y"]
3631 self.cdp.set_window_rect(x, y, width, height)
3632 return
3633 self._check_browser()
3634 self.driver.set_window_size(width, height)
3635 self.__demo_mode_pause_if_active(tiny=True)
3636
3637 def set_window_position(self, x, y):
3638 self.__check_scope()

Callers 3

__set_window_rectMethod · 0.45
get_new_driverMethod · 0.45

Calls 6

__check_scopeMethod · 0.95
__is_cdp_swap_neededMethod · 0.95
_check_browserMethod · 0.95
get_window_positionMethod · 0.45
set_window_rectMethod · 0.45

Tested by 1