How to handle browser login popup using Selenium & Java

前端 未结 2 751
青春惊慌失措
青春惊慌失措 2021-01-28 18:19

The website that I am trying to automate has a authentication popup that appears when someone visits it. I tried the following code but Chrome immediately throws no alert presen

2条回答
  •  無奈伤痛
    2021-01-28 18:38

    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
    

提交回复
热议问题