Switches focus to the specified window. Args: window_name: The name or window handle of the window to switch to. Example: driver.switch_to.window("main")
(self, window_name: str)
| 111 | self._driver.execute(Command.SWITCH_TO_PARENT_FRAME) |
| 112 | |
| 113 | def window(self, window_name: str) -> None: |
| 114 | """Switches focus to the specified window. |
| 115 | |
| 116 | Args: |
| 117 | window_name: The name or window handle of the window to switch to. |
| 118 | |
| 119 | Example: |
| 120 | driver.switch_to.window("main") |
| 121 | """ |
| 122 | self._w3c_window(window_name) |
| 123 | |
| 124 | def _w3c_window(self, window_name: str) -> None: |
| 125 | def send_handle(h): |
nothing calls this directly
no test coverage detected