Confidential information reflecting in Selenium and command logs

Hi Team! I noticed that the credentials that I am passing in the automation tests are visible under command and selenium logs. I don’t want my sensitive data to reflect in the logs. Can we do something about it?

Hey Michael! Your concern is totally understandable here. Please don’t worry at all. You can use the following capabilities to turn off these logs as per your requirement.

To hide the command logs:

capabilities.setCapability("commandLog", false);

Allows hiding the Selenium/Appium logs:

capabilities.setCapability("systemLog", false);

Easy right?!

Good day! :slight_smile:

1 Like