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

Method maximize_window

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

Source from the content-addressed store, hash-verified

3647 self.__demo_mode_pause_if_active(tiny=True)
3648
3649 def maximize_window(self):
3650 self.__check_scope()
3651 if self.__is_cdp_swap_needed():
3652 self.cdp.maximize()
3653 return
3654 self._check_browser()
3655 try:
3656 self.driver.maximize_window()
3657 except Exception:
3658 with suppress(Exception):
3659 width = self.execute_script("return screen.availWidth;")
3660 height = self.execute_script("return screen.availHeight;")
3661 self.set_window_rect(0, 0, width, height)
3662 self.__demo_mode_pause_if_active(tiny=True)
3663
3664 def maximize(self):
3665 self.maximize_window()

Callers 15

maximizeMethod · 0.95
get_new_driverMethod · 0.95
maximize_windowFunction · 0.80
uc_gui_click_x_yFunction · 0.80
_uc_gui_click_captchaFunction · 0.80
venster_maximaliserenMethod · 0.80
maximiser_fenêtreMethod · 0.80
ingrandisci_finestraMethod · 0.80
maximizar_ventanaMethod · 0.80
창_최대화Method · 0.80

Calls 7

__check_scopeMethod · 0.95
__is_cdp_swap_neededMethod · 0.95
_check_browserMethod · 0.95
execute_scriptMethod · 0.95
set_window_rectMethod · 0.95
maximizeMethod · 0.45

Tested by 2

test_octocat_tourMethod · 0.64
test_presentationMethod · 0.64