# Synthetic click not treated as a real user click

**URL:** <https://community.dynatrace.com/t/synthetic-click-not-treated-as-a-real-user-click/38078>\
**Category:** Synthetic Monitoring\
**Tags:** application-monitoring, synthetic-monitoring\
**Created:** [January 19, 2023, 11:01pm UTC](https://community.dynatrace.com/t/synthetic-click-not-treated-as-a-real-user-click/38078 "2023-01-19T23:01:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SachinJindal](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@SachinJindal](https://community.dynatrace.com/u/SachinJindal)\
**Post date:** [January 19, 2023, 11:01pm UTC](https://community.dynatrace.com/t/synthetic-click-not-treated-as-a-real-user-click/38078/1 "2023-01-19T23:01:58Z")

</div>

Hi,

we have a blocker for synthetic.

Scenario: if I select the value using dropdown then Bank details should be auto-populated in the below fields however when I make a selection with synthetic or Java script values are not getting populated and come as blank but if I pass the external mouse click event anywhere on Webpage than it works but with synthetic it’s not happening, not sure for some reason application is not treating synthetic click as real user click.

Tried passing the Mouse event/Enter key/keystroke then enter on the Synthetic still no luck.

Any suggestions, please  
Thanks

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Al3x](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_al3x/32/36257_2.png) [@Romanenkov\_Al3x](https://community.dynatrace.com/u/Romanenkov_Al3x)\
**Post date:** [January 20, 2023, 9:36am UTC](https://community.dynatrace.com/t/synthetic-click-not-treated-as-a-real-user-click/38078/2 "2023-01-20T09:36:48Z")

</div>

Hello.

I am not sure but have another problem related to pseudo classes.

Locators are different for each session, in my case it was so.

I have delete some of them and play back click path. Deleted elements&nbsp;did not affect, the step and test was successfully completed.

 ![Romanenkov_Al3x_0-1674206039189.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/670c8575daeecef34c88c56a70a42fd30c953117.png)

There may be some kind of global JS variable that tells the application whether the form is full or not. It can also be adjusted through editing an action, as we can do similar through the browser developer tools. I would try that way.

Regards,

Romanenkov Alex

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [January 25, 2023, 9:33am UTC](https://community.dynatrace.com/t/synthetic-click-not-treated-as-a-real-user-click/38078/3 "2023-01-25T09:33:29Z")

</div>

If the suggestion above didn’t help, please can you create a chat/ support ticket as it would be easier if we can look at the site and give you advice.

---

<div class="post-metadata">

**Author:** ![SachinJindal](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@SachinJindal](https://community.dynatrace.com/u/SachinJindal)\
**Post date:** [January 25, 2023, 11:14pm UTC](https://community.dynatrace.com/t/synthetic-click-not-treated-as-a-real-user-click/38078/4 "2023-01-25T23:14:16Z")

</div>

Sure Thanks&nbsp;[@HannahM](https://community.dynatrace.com/user/1433)

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [August 23, 2023, 8:26am UTC](https://community.dynatrace.com/t/synthetic-click-not-treated-as-a-real-user-click/38078/5 "2023-08-23T08:26:41Z")

</div>

To follow up on this, these clicks were trusted events, which we were unable to interact with. We have added a new feature to cover this scenario which is enabled by adding the following to the configuration section of the script:

```auto
,"experimentalProperties": [
            {
                "name": "enableTrustedEvents",
                "value": "true"
            }
        ]

```

 ![HannahM_0-1692779119210.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/56432494eb9124ff483475d49cf08ff94e0a7c9f.png)

**For Clicks,** this is supported from Synthetic 1.266 (1.266 Recorder, 1.266 Public Locations, 1.267 Synthetic AG). The above property enables the script to perform clicks that require the event to be trusted.

**For Keystrokes,** this is supported from 1.269 (1.269 Recorder, 1.269 Public Locations, 1.269 Synthetic AG). the above property enables the script to perform keystrokes that require the event to be trusted.

---

<div class="post-metadata">

**Author:** ![Lily](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@Lily](https://community.dynatrace.com/u/Lily)\
**Post date:** [June 7, 2024, 1:46am UTC](https://community.dynatrace.com/t/synthetic-click-not-treated-as-a-real-user-click/38078/6 "2024-06-07T01:46:40Z")

</div>

Hi Hannah,

Glad to find this post, but I encountered a new issue after having “enableTrustedEvents”&nbsp; enabled.

Some background:

I have 3 key stroke steps as below:

a) enter user name

b) enter password

c) enter search string

- Scenario 1&nbsp; - without&nbsp;enableTrustedEvents enabled,&nbsp;&nbsp;a) & b) works well. but NOT c)

eg. the search string is like “heat beat”&nbsp; then c) shows like below(which is not right)

![Lily_0-1717724415957.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/9d93011c55560e4423b5e09fad3f683785d72021.png)

- Senario2 - with&nbsp;enableTrustedEvents enabled( in configuraiton section as suggested above)&nbsp;&nbsp;, c)&nbsp; issue was solved ( can be seen from synthetic Multidimensional analysis)

However, a) hit&nbsp; timeout error during playback .&nbsp; weridly, this seemed only happened during playback as no error out in the Synthetic execution.

any idea&nbsp; how to solve it&nbsp; ?&nbsp; Thank you in advance.

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [September 9, 2024, 2:33pm UTC](https://community.dynatrace.com/t/synthetic-click-not-treated-as-a-real-user-click/38078/7 "2024-09-09T14:33:22Z")

</div>

Hi Lily, this would be best investigated via chat/ a support ticket so we can check this specific scenario.
