403 Forbidden Error when using JavaScript code in Synthetic Monitor

Hello, as the title suggests, I am running into a “403 - FORBIDDEN” error when executing my synthetic monitor on a JavaScript event. I am using JavaScript to simulate a click on a popup window, as the normal Dynatrace click event does not seem to work, no matter what CSS selectors I provide. I would like to mention that up until a few days ago, the synthetic monitor was working without issues. Additionally, when accessing the site normally, I am able to use the same commands in the Developer Tools console to perform the action with no issues. Does anyone have a solution to this? Thanks.

let btn = document.querySelector("#popup-element")
btn.click()

This would be better investigated in a ticket.

Hello @vuthayak

You can solve it through:

hoping it helps.

BR,

Peter