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!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...