Environment

  • Dynatrace Recorder

To use a global variable in a CSS locator to locate a dynamic element, add a Custom action to the script, before the action that contains the dynamic element.

Note the following requirements:

  • Use the control window instead of gomez_top[0] to define the global variables.
  • Do not use var in the variable definition.

See the attached sample script: Example how to use global variables in CSS locator.gsl.