Let's take it a simple way. A basic auth pop-up is a window of OS, not a window of browser. You can control browser by using selenium
, but can not interact with a OS pop-up window. You can try other automation libary like win32gui
to interact with a OS pop-up.