Try to automate a website that you need to login to an IP address. When you navigate to the IP address, a popup login alert will display, but you can not inspect the alert (right-click does not do anything) and can not get any web elements of the alert.
I have tried to print all the elements, but it is only printing the parent page element which is HTML, head, body.
when I use the driver.switchTo().alert()
, it returns selenium.NoAlertPresentException: no such alert
How can I automate this scenario with selenium?