Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Masking Selenium Variables

When command values contain sensitive information, they Command values can be masked by using an Apica-specific prefix when they contain sensitive information. This prevents the value from being displayed in results. Assume a scenario contains the following commands:

...

It is possible to mask the value secretPa$$word in the Check Result page by adding the Store command to store the password as a variable with the prefix maskapica, then and using that variable in the actual command which uses the password. The scenario will contain the following commands after the value secretPa$$word is masked:

Command

Target

Value

store

secretPa$$word

maskapicaPassword

open

/

selectWindow

null

type

id=username

user1

type

id=password

\{\{${maskapicaPassword}\}\}

clickAndWait

_input@value='Log in'

When a check is run with a scenario which utilizes a command which contains maskapica, the the The command’s target will be masked on the Check Results page when the check results pageis run:

Command

Target

Value

store

*******

maskapicaPassword

open

/

selectWindow

null

type

id=username

user1

type

id=password

\{\{${maskapicaPassword}\}\}

clickAndWait

//input@value='Log in'

...

This prefix will work with any command that starts with “store."

 

‘maskapica’ hide a value

Maskapica

When the "maskapica" prefix is used in a command value, the web performance monitor will store the command target (the example Target below is '$(ExternalPassword) ') as is in the result but will mask it (as the example Value below, “maskapicaPassword“) on the check result page. 

Example

...

Limitations of Selenium IDE within ASM Scenarios

...

When using sendKeys in Selenium IDE, certain the key codes are not available in Scenario Migration.

Overview

...

${KEY_ENTER}

...

, ${KEY_SHIFT}

...

, and ${KEY_LEFT}

...

are not valid commands within Selenium IDE.

JavaScript Execution

WebDriver’s JavascriptExecutor will wrap all JS and evaluate it as an anonymous expression.

...

If you need to simulate a keypress input event, such as pressing the enter key, you must use keyPress or keyPressAndWait (if the keystroke triggers a new page load), with the ASCII as an argument.

Overview

Example: Press enter key and wait for new page load

...