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.
Written by Alexis Reigel
Related protips
1 Response
Capybara with http basic authentication:
http://espake.com.br/2013/09/25/ruby-on-rails-4-with-capybara-http-basic-authentication/
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Bdd
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#