Attempting to access a webpage with a login alert requesting credentials. My search for how to switch to the alert box online has proven fruitless. How do I enter the username and password?
In my previous attempt to automate this page using Selenium WebDriver / Java, I resorted to using the Robot class to input values since I couldn't access the Alert box through the switchTo() method of WebDriver.
My query now is whether it's feasible to accomplish this using Protractor, or if not, is there an alternative approach similar to the Robot class that can be used? Apologies for being unfamiliar with JS.