-
Book Overview & Buying
-
Table Of Contents
Hands-On Automated Testing with Playwright
By :
These days, most web apps use more than just a simple username and password to log in. From multi-step OAuth to SSO processes, authentication can quickly turn into a tricky puzzle for automated testing.
In this section, we’re going to explore ways you can keep your credentials safe and secure, whether that means storing them in environment variables, using a dedicated secrets manager, or other techniques. We’ll also talk about how to automate more advanced login flows, so you can protect your information.
A simple and safe way to store your credentials in Playwright is by using environment variables. While Playwright doesn’t come with its own built-in secrets manager, environment variables are great for keeping sensitive information secure. Environment variables are basically little key-value pairs that live outside your code base. They are usually managed by your operating...