java - Not able to handle the URL with Special Characters through Authentication Required pop up in Selenium Webdriver -
please find below code i'm using.
- authentication required pop up.
- using https://username:password@url in selenium web driver.
- password contains special characters #^[ ](
password error message received. manually working fine.
string result = java.net.urlencoder.encode("925gp2i4gnqp^#(^985ghq95gqcpqjcg[0rijfm[e0rf9q", "utf-8"); string url = "https://" + uname + ":" + result + "@" + test_environment; string url1 = "https://" + test_environment; system.out.println(url);
Comments
Post a Comment