How can I minimize the browser window using selenium in python language? I use Chrome.
--Headless and driver.minimize_window() doesn't work for me. When I use driver.minimize_window(), it minimizes the browser but my code won't go any further. I used browser.set_window_position(-900, 950) and it's working fine, but I'd like to be able to minimize, not move and hide the browser.
Install the package keyboard. And Try like this