Splunk Observability Cloud

Synthetics - tracking a new window in browser test

maddop
New Member

I am using the Synthetics browser test to track availability of our Citrix client application endpoints.

The user journey:

  1. access public url
  2. sign into account (username, click next, password, click sign-in)
  3. click the application icon
  4. a new window loads with the application

Everything works great up-to step 3. I cannot figure out how we track the new window. This is the key part, I need to know if this loads successfully. 

I suspect it is not possible based upon reading the documentation but has anyone had a similar issue and successfully solved it?

Labels (1)
0 Karma

maddop
New Member

Hi @livehybrid 

Unfortunately not, its a button CSS + Javascript.  

 

<button type="button" class="web-ui-component__button  jjui-11138fz" style="display: inline-block;">
<div data-analytics-name="resource-tile" data-testid="sampleApp_Dev" tabindex="-1" class="jjui-vkvk0d ell0llb0">
.............

 

 

I can successfully simulate the click of the button using "click" CSS selector 

 

div[data-testid="sampleApp_Dev"]  

 

 

but do not have direct access to the JS. I've traced it in Chrome but it has so many nested calls its challenging to find anything useful

0 Karma

livehybrid
Super Champion

Hi @maddop 

Is the link you're clicking on a regular a/href link with a target=_blank ? 

You may be able to "Execute Javascript" before the click to remove the target from the link, then click as normal?

const links = document.querySelectorAll('a');

// Iterate over each link and remove the 'target' attribute
links.forEach(link => {
  link.removeAttribute('target');
});

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

0 Karma
Get Updates on the Splunk Community!

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...

Secure Your Future: Mastering Upgrade Readiness for Splunk 10

Spotlight: The Splunk Health Assistant Add-On  The Splunk Health Assistant Add-On is your ultimate companion ...

Observability Unlocked: Kubernetes & Cloud Monitoring with Splunk IM

Ready to master Kubernetes and cloud monitoring like the pros? Join Splunk’s Growth Engineering team on ...