how to login to the alert window when we navigate to the browser through selenium

后端 未结 2 1649
天命终不由人
天命终不由人 2021-01-26 08:34

I have the url which needs credentials and I am navigating to that through selenium + Java https://username:password.example.com/

However it still shows the login window

相关标签:
2条回答
  • 2021-01-26 08:59

    You are missing @ symbol after user name and password. You can try like below,

    https://username:password@test.discoverykidsplay.com/

    0 讨论(0)
  • 2021-01-26 09:17

    This provides multiple approaches for handling Authentication pop-ups.

    I would suggest to use WebDriver’s switchTo.alert() syntax to access them and then use methods such as sendKeys(), accept() or dismiss()

    0 讨论(0)
提交回复
热议问题