driver.get("https://username:password@something.com");
driver.get("https://username:password@something.com);
and then:
driver.get("http://something.com");
In safari both of the above solutions are not working. I have also tried with Alert class in selenium. Googled a lot, still did not find any solution working. Any solution which can be used across all browsers would be awesome ;), solution for safari alone is also fine. Thanks in advance.
Neither of these approaches is expected to work; browsers have stopped accepting user:password for Basic Authentication, so it doesn't work under WebDriver control either. The WebDriver Working Group is aware of this functionality gap but hasn't proposed a solution yet :(
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.