0

I am trying to login to the site that has windows authentication enabled using URL "http://userName:pass@siteName.com" in selenium web driver. It is working fine in normal cases, however it doesn't work when the password contains a special character '@'.

I also tried to handle it using alert with following code, but it is also not working:

UserAndPassword up = new UserAndPassword("userName", "pass");
driver.switchTo().alert.authenticateUsing(up);

Please suggest how to escape this special character.

I am running my test cases in chrome browser.

Kunal Khatri
  • 71
  • 1
  • 3

0 Answers0