I'm filling in a password in an external service in an end-to-end test (a user logs in with OpenAuth in this external service). browser.setValue() prints the password on the console. Is there any way to tell it to not print the password?
Alternatively, what about a function setPassword(password) that doesn't print the value to the console? Otherwise it could work exactly like setValue().
Hi, I would like to know if this feature request could be reconsidered after more than three years and now that security has become even more important?
We use Nightwatch with Browserstack but even if we have no password written in clear in our code, passwords appear in plain text in the cloud-hosted Browserstack logs when we use the .setValue() command to test a user login.
@ycarpentier you can just use browserstack's capability to mask setValue commands
Eg:-
capabilities['browserstack.maskCommands'] = 'setValues, getValues, setCookies, getCookies'
https://www.browserstack.com/docs/automate/selenium/hide-sensitive-data#introduction
Most helpful comment
Hi, I would like to know if this feature request could be reconsidered after more than three years and now that security has become even more important?
We use Nightwatch with Browserstack but even if we have no password written in clear in our code, passwords appear in plain text in the cloud-hosted Browserstack logs when we use the
.setValue()command to test a user login.