I have a popup window which does not exist in the WebDriver.
There is no WindowHandle for it, so I cannot address it as Alert.
But since the cursor is in the right position, is there any way to just send username TAB password ENTER as Keys?
I have a popup window which does not exist in the WebDriver.
There is no WindowHandle for it, so I cannot address it as Alert.
But since the cursor is in the right position, is there any way to just send username TAB password ENTER as Keys?
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
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
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