I currently have tests in rspec/capybara that use Active Directory to automatically log users in. I would like to specify a different username/password within a Chrome profile in order to test different accounts.

1 Answer 1


Change URL with authentication to: http://user:[email protected] . This will work in part of situations and will authenticate you to needed service.

Credit goes to the following blog post: https://stackoverflow.com/questions/30247051/handling-windows-authentication-with-selenium-webdriver

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.