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.

  1. authentication required pop up.
  2. using https://username:password@url in selenium web driver.
  3. password contains special characters #^[ ](
  4. 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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -