I'm still new to automation and what i want to know if this method is secure in bypassing basic authentication, considering we are using https. By browsing i couldn't find any better practices of this case but i'm still not sure that it's secure and the best way:

driver.get("https://user:[email protected]");

1 Answer 1


An alternate way is to encode credentials using Base64 encoding. Yaron White's article explains how it can be done using a custom key.


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.