Javascript Login Popup

时间:2019-01-09 22:18:37

标签: selenium selenium-webdriver selenium-chromedriver

Can you please suggest how to handle login popup on Chrome using Selenium :

Since org.openqa.selenium.security.UserAndPassword removed from Selenium 3.0 and above, how to progress with the login ?

1 个答案:

答案 0 :(得分:0)

Check these out 1 and 2.

The second video though used with Firefox explains that to pass a username and password through the url itself. For example when calling the driver.get() function you can pass the username in password of the page by the following.

driver.get("https://username:password@domain.com")

Website 1 however does it by passing it through Selenium's server and lists various other methods with out using the url.

Refer to link 1's methods 2 and 3 for use without using the url method.