# Synthetic scripts browser clickpath, popup window

**URL:** <https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982>\
**Category:** Synthetic Monitoring\
**Tags:** synthetic-monitoring\
**Created:** [March 31, 2021, 1:46pm UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982 "2021-03-31T13:46:09Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![MF\_Consultor](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@MF\_Consultor](https://community.dynatrace.com/u/MF_Consultor)\
**Post date:** [March 31, 2021, 1:46pm UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/1 "2021-03-31T13:46:09Z")

</div>

Hello,

We have the following problem, there is an application (web) that we are trying to open, when we select an option from a menu, a pop-up window opens with a form. The problem is, that popup only works like this, it doesn’t work like a new tab in the browser.  
When we execute the recording, the pop-up window is not loaded, but is loaded as one more tab to the main sale.  
Apparently there is some configuration in the application that prevents it from working as a tab, the session is closed. It only works as a pop-up window and we cannot continue recording and validate the data in the pop-up window.  
1- We test the flow with the incognito window without recording and the popup window loads without problems.  
2-We test the recording and the popup is loaded as a tab to the main sale.

Any solution, thanks.

---

<div class="post-metadata">

**Author:** ![MF\_Consultor](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@MF\_Consultor](https://community.dynatrace.com/u/MF_Consultor)\
**Post date:** [March 31, 2021, 4:07pm UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/2 "2021-03-31T16:07:18Z")

</div>

Complemented the above

We have a script recorded with Vugen (Microfocus LoadRunner), this captures the dynamic values ​​through correlations and then adds them to the URL and makes the POST request, the server responds with 200 ok code and returns all the content of the sale (the body of the HTML).  
and We do not suffer with pop-ups.  
Is it possible to do this with dynatrace?  
Greetings.

---

<div class="post-metadata">

**Author:** ![MichalGebacki](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michalgebacki/32/41585_2.png) [@MichalGebacki](https://community.dynatrace.com/u/MichalGebacki)\
**Post date:** [April 22, 2022, 9:54am UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/3 "2022-04-22T09:54:39Z")

</div>

Hi everyone!

As this thread remains unanswered as of now, does anyone have some insights that would be helpful for future visitors and seekers?&nbsp;:thinking:

Thanks 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:** [April 25, 2022, 12:07pm UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/4 "2022-04-25T12:07:34Z")

</div>

It is expected that the pop-up is loaded as a tab when run using Dynatrace Synthetic. I’m not aware of any work arounds for this. It might make a good Product Idea if you have an application that does not allow this.

---

<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:** [April 25, 2022, 12:11pm UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/5 "2022-04-25T12:11:21Z")

</div>

You can add dynamic values to urls using [JavaScript events](https://www.dynatrace.com/support/help/how-to-use-dynatrace/synthetic-monitoring/browser-monitors/browser-clickpath-events#javascript). You can capture the dynamic value and save it using&nbsp;api.setValue(key, value) and you can then add that value to a url using {key}.

---

<div class="post-metadata">

**Author:** ![JLuisHF](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@JLuisHF](https://community.dynatrace.com/u/JLuisHF)\
**Post date:** [August 20, 2024, 7:22pm UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/6 "2024-08-20T19:22:53Z")

</div>

Hi HannahM

Do you now if the Product Idea was created for the problem ?  
Thanks

---

<div class="post-metadata">

**Author:** ![JLuisHF](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@JLuisHF](https://community.dynatrace.com/u/JLuisHF)\
**Post date:** [August 20, 2024, 7:24pm UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/7 "2024-08-20T19:24:35Z")

</div>

Hi

Did you found any solution for you problem?

Thanks

---

<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 21, 2024, 10:20am UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/8 "2024-08-21T10:20:34Z")

</div>

For most customers, this solution works:&nbsp;[https://community.dynatrace.com/t5/Troubleshooting/How-to-add-conditional-JavaScript-code-to-close-the-intermittent/ta-p/209319](https://community.dynatrace.com/topic/209319)

---

<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 21, 2024, 10:22am UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/9 "2024-08-21T10:22:50Z")

</div>

A product idea for applications where the pop-up does not work as expected when it is treated as a tab?

---

<div class="post-metadata">

**Author:** ![JLuisHF](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@JLuisHF](https://community.dynatrace.com/u/JLuisHF)\
**Post date:** [August 21, 2024, 12:52pm UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/10 "2024-08-21T12:52:23Z")

</div>

Hi

In my case I have the first Window to do the login steps, after that I have a Popup Window with my application in this page, I need to do any search to validate if my Application is OK, but my clickpath stops the register after de connection page, like in my image

Thanks

Luis

 ![Window_Popup.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/1/01c1a7edcb5e0a06dade905e439d3195e65b863f.png)

---

<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 22, 2024, 8:22am UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/11 "2024-08-22T08:22:16Z")

</div>

This would be easier checked in a support ticket.  
Is your image from a playback or recording? If it’s playback then I suspect the application is bypassing our player, which directs any new window requests to a new tab instead.

---

<div class="post-metadata">

**Author:** ![JLuisHF](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@JLuisHF](https://community.dynatrace.com/u/JLuisHF)\
**Post date:** [August 22, 2024, 1:11pm UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/12 "2024-08-22T13:11:34Z")

</div>

Hi

My image is during recording, I think the same thing

Luis

---

<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 22, 2024, 1:15pm UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/13 "2024-08-22T13:15:02Z")

</div>

Cool. I don’t think that the player moves the new window to a new tab during recording, so that should be fine. It would just be if we saw the new window being opened on playback.

---

<div class="post-metadata">

**Author:** ![JLuisHF](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@JLuisHF](https://community.dynatrace.com/u/JLuisHF)\
**Post date:** [August 22, 2024, 1:32pm UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/14 "2024-08-22T13:32:27Z")

</div>

Hi

The problem here is that as soon as the new window opens, the recording stops and this cuts off my synthetic test, which is a damage for us tests 😞

Luis

---

<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 22, 2024, 1:34pm UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/15 "2024-08-22T13:34:57Z")

</div>

You can try manually adding the next events but that sounds like there’s a window.close being sent that we can’t prevent. A support ticket would be best for looking at this

---

<div class="post-metadata">

**Author:** ![JLuisHF](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@JLuisHF](https://community.dynatrace.com/u/JLuisHF)\
**Post date:** [August 22, 2024, 1:36pm UTC](https://community.dynatrace.com/t/synthetic-scripts-browser-clickpath-popup-window/30982/16 "2024-08-22T13:36:19Z")

</div>

Thanks 🙂
