Skip to content

Files

Latest commit

 

History

History
64 lines (56 loc) · 2.59 KB

selenium-mask-your-data.md

File metadata and controls

64 lines (56 loc) · 2.59 KB
id title hide_title sidebar_label description keywords url site_name slug
selenium-mask-your-data
Mask your Sensitive Data
false
Masking Sensitive Data
This capability allows you to mask your sensitive data such as username and acceskey while showing in the logs of the lambdatest platform
lambdatest automation
selenium automation grid
selenium masking data
lambda mask commands
LambdaTest
selenium-mask-your-data/
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify({ "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "LambdaTest", "item": "https://www.lambdatest.com" },{ "@type": "ListItem", "position": 2, "name": "Other Capabilities", "item": "https://www.lambdatest.com/support/docs/" },{ "@type": "ListItem", "position": 3, "name": "Mask your Data", "item": "https://www.lambdatest.com/support/docs/selenium-mask-your-data/" }] }) }} ></script>

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"]