(self, x, y)
| 3635 | self.__demo_mode_pause_if_active(tiny=True) |
| 3636 | |
| 3637 | def set_window_position(self, x, y): |
| 3638 | self.__check_scope() |
| 3639 | if self.__is_cdp_swap_needed(): |
| 3640 | size = self.cdp.get_window_size() |
| 3641 | width = size["width"] |
| 3642 | height = size["height"] |
| 3643 | self.cdp.set_window_rect(x, y, width, height) |
| 3644 | return |
| 3645 | self._check_browser() |
| 3646 | self.driver.set_window_position(x, y) |
| 3647 | self.__demo_mode_pause_if_active(tiny=True) |
| 3648 | |
| 3649 | def maximize_window(self): |
| 3650 | self.__check_scope() |