Nightwatch: Don't print passwords: can I tell setValue() to be silent? Or add setPassword()?

Created on 28 Nov 2015  路  2Comments  路  Source: nightwatchjs/nightwatch

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().

enhancement

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.

All 2 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Pieras2 picture Pieras2  路  3Comments

MateuszJeziorski picture MateuszJeziorski  路  3Comments

Zechtitus picture Zechtitus  路  4Comments

manjero picture manjero  路  4Comments

bushev picture bushev  路  4Comments