How to handle login pop up window using Selenium WebDriver?
Hi All, Some times while using webdriver we have to face login popup handle. When we passing the url using webdriver.get or webdriver.navigate.to("URL") at this time browser asks for login credentials. For handle this situation we have to do following things. 1. HTTP Basic Authentication with Selenium WebDriver the authentication prompt is not available from the Selenium WebDriver. One of the way to handle this limitation is to pass user and password in the url like like below: http://username:password@the-site.com So just to make it more clear. The username is username password is password and the rest is usual URL of your test web WebDriver driver = getDriver(); String URL = "http://" + username + ":" + password + "@" + "link"; driver.get(URL); but sometimes it does not work for IE browser we can use robot method import java.awt.Robot; import java.awt.Toolkit; import java.a...