Last Updated: February 25, 2016
·
2.014K
· koffeinfrei

Test basic auth with Capybara

There is no driver independent method for authenticating.
You can do the following though:

Construct a url with a username:password pair

http:// user:pw @ example.com/whatever

(Omit the spaces, I'm just tricking coderwall's markdown parser)

Note: This won't work in Internet Explorer.

1 Response
Add your response