I am using watir(Ruby selenium package) to try and login to url using basic auth
I pass the credentials like so
https://username:[email protected]
However when the browser opens, i get a popup to enter the credentials again.
The code that i use is as follows
driver = Watir::Browser.new :chrome
driver.goto "https://username:[email protected]"
The above code opens the browser -> goes to the url but give the popup to enter the credentials again.
How do i login to the url using basic auth?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…