'How to stop Python Selenium from maximizing the window on download

I created a code to download programmatically files from a website, each time a download occurs the window running with selenium maximizes and i need to minimize it to continue work.

How can i prevent it from maximizing on each download event?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source