cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Mareeswaran
Dynatrace Advisor
Dynatrace Advisor

Summary

The Dynatrace Synthetic Recorder extension does not support recording shadow DOM elements. To accommodate this, the locator must be updated in the Browser clickpath. 

 

Problem

After recording a Browser clickpath, some events fail with errors like '1502 - The html element could not be found to perform action'. On inspecting the element, it is found that it is within a ShadowDOM, #shadowroot. 

 

Resolution

  1. Go to the relevant page on a Chrome browser

  2. Right-click on the element that you want to interact with on the page and select Inspect. This will open the element in the developer tools

     
     

    image1.png

     

  3. Right-click on the element on the Web developer tools - > Copy - > Copy JS path

  4. Add this copied DOM selector into your synthetic script events as a type of DOM selector. 

     

    image3.png

 

What's Next

If this doesn't work, it may be that you need to try a different locator or to fire some events, see How to perform click event with help of Javascript on browser click path synthetic monitor incase of...

If you still need assistance, open a chat or support ticket and provide a link to the affected monitor and explain what your are trying to do and what you have already tried. 

 

You can find further troubleshooting tips for Synthetic in the Synthetic Troubleshooting Map

Version history
Last update:
‎02 May 2025 12:26 PM
Updated by:
Comments
ChadTurner
DynaMight Legend
DynaMight Legend

@Mareeswaran  Thank you for sharing this! I'm sure it will help out many community members.