on
12 Apr 2023
04:00 AM
- edited on
02 May 2025
12:26 PM
by
HannahM
The Dynatrace Synthetic Recorder extension does not support recording shadow DOM elements. To accommodate this, the locator must be updated in the Browser clickpath.
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.
Go to the relevant page on a Chrome browser
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
Right-click on the element on the Web developer tools - > Copy - > Copy JS path
Add this copied DOM selector into your synthetic script events as a type of DOM selector.
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
@Mareeswaran Thank you for sharing this! I'm sure it will help out many community members.