adspace


How to login into any site if it is showing an authentication pop-up for username and password?

Answer Posted / Rukmani Gunjiyal

To handle an authentication pop-up in Selenium WebDriver, you need to switch to the pop-up window (using `driver.switchTo().alert()` or `driver.switchTo().window(popup_handle)`), enter the credentials, and then click on the login button.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What’s selenese?

918


what will be the first salary and what will be the hike in the salary?

928


Have you created any framework?

1035


How can you fetch an attribute from an element? How to retrieve typed text from a textbox?

1195


Do you know how to locate a link using its text in selenium?

983