I am using the Synthetics browser test to track availability of our Citrix client application endpoints.
The user journey:
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?
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
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:
Your feedback encourages the volunteers in this community to continue contributing