How to handle browser login popup using Selenium & Java

本小妞迷上赌 提交于 2019-12-02 10:22:58

Selenium do not handle it by switchto command because this is something that is browser specific instead of website.

Solution 1:

driver.get("http://username:password@url.com");

But problem with this method is that as you traverse to multiple pages the popup will appear again and again which is again difficult to handle.

Solution 2: (Recommended)

AutoIt script, Download AutoIt here And Find the Script for Authentication PopUp here

Do you need check it or pass it? If you need to pass, put login and password in URL.

http://username:password@your-web-site.com
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!