Is it possible to completely white-list a var's value ?. I've tried using page object and specify the sensitive info in props and then reference it in the test. Secondly I've tried using env variables and include them in page object(or test case) as process.env.SOME_ENV_VAR.
But in both cases, they appear in the selenium logs when I'm using setValue command. It's fine when running locally or hosting on github(in the second case they won't be showing up anywhere in git when excluding .env file), but I'd prefer they to be hidden from logs when running on Browserstack or SauceLabs. Please suggest if anyone knows the way to do so.
via andddrey
No comments:
Post a Comment