Skip to main content

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:

ValueDescription
setValuesHide/Redact all the text sent via sendKeys command.
setCookiesHide/Redact all the cookies set by the addCookie command.
getCookiesHide/Redact all the cookie values obtained using the getCookies and getCookieNamed command.

For example:

LanguageExample
Javacapabilities.setCapability("lambdaMaskCommands", {"setValues", "setCookies, getCookies"});
Node.jscapabilities[‘lambdaMaskCommands’] = ["setValues", "setCookies", "getCookies"]
C#capabilities.SetCapability("lambdaMaskCommands", {"setValues", "setCookies", "getCookies"});
PHP$capabilities["lambdaMaskCommands"] = array("setValues", "setCookies", "getCookies")
Pythoncapabilities["lambdaMaskCommands"] = ["setValues", "setCookies", "getCookies"]
Rubycapabilities["lambdaMaskCommands"] = ["setValues", "setCookies", "getCookies"]

Test across 3000+ combinations of browsers, real devices & OS.

Book Demo

Help and Support

Related Articles