Closing authentication popup selenium
<p>Is there possibility to close popup authentication window via <strong>selenium</strong></p>

<p>I wrote something like thath: </p>

<pre><code>def Alert():
    alert = driver.switch_to_alert()
    alert.dismiss()
</code></pre>

<p>I do not need to authenticate this session. Simple closure of window is enought. </p>

<p>Authentication is granted by domain user im logged into :)</p>

<p>@Edit i do not need to log in i just need to close the window</p>

<p>Pass proxy user name &amp; password in the URL that you are trying to access in the following manner:</p>

<p><code>driver.get("http://username:password@www.yourAppURL.com/")</code></p>

python selenium popup