| 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() |