Mask your Sensitive Data
With the help of maskCommands capability, you can now hide sensitive and important data, sent to or retrieve from the remote browsers at LambdaTest. When used, this will hide all the keystrokes and other required values, and replace them with ‘*’ in test session logs (both text and raw).
Syntax (Java):
capabilities.setCapability("lambdaMaskCommands", {"<array of values to be hidden>"});
List of comma separated values that can be hidden:
Value | Description |
---|---|
setValues | Hide/Redact all the text sent via sendKeys command. |
setCookies | Hide/Redact all the cookies set by the addCookie command. |
getCookies | Hide/Redact all the cookie values obtained using the getCookies and getCookieNamed command. |
For example:
Language | Example |
---|---|
Java | capabilities.setCapability("lambdaMaskCommands", {"setValues", "setCookies, getCookies"}); |
Node.js | capabilities[‘lambdaMaskCommands’] = ["setValues", "setCookies", "getCookies"] |
C# | capabilities.SetCapability("lambdaMaskCommands", {"setValues", "setCookies", "getCookies"}); |
PHP | $capabilities["lambdaMaskCommands"] = array("setValues", "setCookies", "getCookies") |
Python | capabilities["lambdaMaskCommands"] = ["setValues", "setCookies", "getCookies"] |
Ruby | capabilities["lambdaMaskCommands"] = ["setValues", "setCookies", "getCookies"] |