I am expecting a pop-up upon closing the browser. For example, when you are shopping and you have items in cart and in the middle of the checkout process, you wanted to close the tab/browser, at that time the site should give you a pop-up asking "Are you sure you want to leave?" or something similar!
I'm using Selenium with python.
When I do,
driver.close() it just closes the browser. It does not give any pop up.
Is there any other method that I can use?