Troubleshooting
Articles about how to solve the most common problems
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
HannahM
Dynatrace Guru
Dynatrace Guru

Summary: Some applications check whether an action was completed by a real user using the isTrusted property. Synthetic users don't pass this check out of the box, so we need to update the script to change this. 

 

Resolution

With the snippet below, Browser Clickpath Monitors can click and enter keystrokes in applications that require the events to be trusted. 

  • Trusted events impact only Click and Keystroke steps; no other steps' behavior is impacted by the flag, including JavaScript steps.
  • The trusted Click step has the following limitations:
    the click may not work when
    • An element is behind another element (overlay) on a page
    • An element is inside an iframe
    • An element is outside of visible part of the webpage.

 

Supported Versions

This feature was added:

  • For Clicks, from 1.266 (1.266 Recorder, 1.266 Public Locations, 1.267 Synthetic-enabled ActiveGates).
  • For Keystrokes, from 1.269 (1.269 Recorder, 1.269 Public Locations, 1.269 Synthetic-enabled ActiveGates)


How to enable interacting with trusted events in a Browser Clickpath monitor

Add the following to the configuration section of the script to enable Trusted Events feature
 

,"experimentalProperties": [ 

"name": "enableTrustedEvents", 
"value": "true" 

]

HannahM_0-1693497747350.png

No further changes are required to the monitor. Now all click and keystroke events in the script will be considered trusted. 

 

What's Next

If this does not resolve the issue, please open a support ticket and provide

  • a link to the affected monitor
  • mention this article and any other troubleshooting steps taken

 

What to read next: 

HannahM_0-1765381862107.png  Script mode for Browser monitor configuration

HannahM_0-1765381862107.png   Synthetic Troubleshooting Map

HannahM_1-1765381862208.png  Synthetic Browser Monitor Error Codes

HannahM_2-1765381862256.png  How to perform a click event using Javascript on browser clickpath synthetic monitors

HannahM_3-1765381862307.png  Browser monitors: Missing XHR actions for third-party iframes

HannahM_3-1765381862307.png  How to inspect and add the shadow DOM elements into synthetic script events.

Version history
Last update:
‎10 Dec 2025 03:56 PM
Updated by: