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

Method reset_window_size

seleniumbase/fixtures/base_case.py:3679–3690  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3677 self.minimize_window()
3678
3679 def reset_window_size(self):
3680 self.__check_scope()
3681 if self.__is_cdp_swap_needed():
3682 self.cdp.reset_window_size()
3683 return
3684 self._check_browser()
3685 x = settings.WINDOW_START_X
3686 y = settings.WINDOW_START_Y
3687 width = settings.CHROME_START_WIDTH
3688 height = settings.CHROME_START_HEIGHT
3689 self.set_window_rect(x, y, width, height)
3690 self.__demo_mode_pause_if_active(tiny=True)
3691
3692 def switch_to_frame(self, frame="iframe", timeout=None, invisible=False):
3693 """Wait for an iframe to appear, and switch to it. This should be

Callers

nothing calls this directly

Calls 5

__check_scopeMethod · 0.95
__is_cdp_swap_neededMethod · 0.95
_check_browserMethod · 0.95
set_window_rectMethod · 0.95

Tested by

no test coverage detected