0

I have a popup window which does not exist in the WebDriver. enter image description here

There is no WindowHandle for it, so I cannot address it as Alert. enter image description here

But since the cursor is in the right position, is there any way to just send username TAB password ENTER as Keys?

Prophet
  • 32,350
  • 22
  • 54
  • 79
Jefe infiltrado
  • 364
  • 2
  • 15

3 Answers3

1

Try to use the approach where you send username and password in URL Request:

http://username:password@the-site.com

The username is username and password is password and the rest is the URL of that web page

String URL = "http://" + username + ":" + password + "@" + theWebPageUrl;
driver.get(URL);

The more detailed answer is here

Prophet
  • 32,350
  • 22
  • 54
  • 79
0

in case you working with Selenium 4, have a look at this, might be worth trying - https://www.lambdatest.com/blog/handling-login-popup-in-selenium-webdriver-using-java/

especially this section

Handling login pop-up in Selenium WebDriver using Selenium 4 beta version

Marek
  • 438
  • 5
  • 10
0

try to access popup as an app element (browser) with RPA.Desktop.Desktop api or RPA.Desktop.Windows api. For Python it's pip install rpaframework

kadis
  • 181
  • 6