What is window handle in Selenium Python?
There is a variety of window handles in Selenium Python. There are two types:
Non-modal window handles like systemWindow() and alert(). You can use these to interact with the page that has focus, for example, clicking a button or selecting a checkbox.
Ctrl+F4 is a modal window handle which is used to close an active window. It sends an alert box asking you if you want to leave the page.