For example Selenium works on one google chrome browser and after some processes opens confirmation window like in picture another (smaller) google chrome browser. And I can't find solution to switch to that another window.
Asked
Active
Viewed 60 times
0
-
Does this answer your question? [How to switch to new window in Selenium for Python?](https://stackoverflow.com/questions/10629815/how-to-switch-to-new-window-in-selenium-for-python) – Niloct Apr 30 '21 at 17:09
-
When I use print(driver.current_window_handle) it shows only one. – Lukas Vysockis Apr 30 '21 at 17:15
-
It will only show one because only one window handle can be active at a time. Study and apply the code snippet that's here: https://www.selenium.dev/documentation/en/webdriver/browser_manipulation/#switching-windows-or-tabs – Niloct Apr 30 '21 at 17:24
-
1Thanks, that solved my problem. – Lukas Vysockis Apr 30 '21 at 18:21