How do I enter user and password in a JavaScript message of a web page? I've tried driver.switchTo().alert() but it's not working.
JavaScript
driver.switchTo().alert()
I'm using Selenium WebDriver with Junit
Selenium WebDriver
Junit