question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adobe Launch Analytics requests are not fired when accessing a page with TestCafe

See original GitHub issue

What is your Scenario?

If accessing the test website with the TestCafe the Adobe Launch Analytics requests are not displayed. If accessing the page manually in browser, Adobe Launch Analytics requests are displayed.

Steps to Reproduce:

  • For TestCafe - Run the attached code
    • While the page is loading open the Developer Tools and filter the requests by b/ss and observe that there are no requests
  • Manually: it cannot be reproduced.

What is the Current behavior?

  • When accessing the website the TestCafe no Adobe Launch Analytics requests are fired.
  • Also one or more JavaScript errors are displayed in Console: Cannot read property ‘indexOf’ of undefined
    • Note that these JavaScript errors are not displayed when visiting the page manually. image

What is the Expected behavior?

  • When visiting the page with TestCafe Adobe Launch Analytics can be fired:
  • No JavaScript errors are displayed after accepting the cookies

What is your public web site URL?

https://www.newegg.com/

Your complete test code (or attach your test files):

import {Selector} from "testcafe";

fixture`Analytics`
    .beforeEach(async t => {
        await t.maximizeWindow();
    })

test('Adobe Launch Analytics', async t => {
    await t.navigateTo("https://www.newegg.com/");
    await t.click(Selector("#onetrust-pc-btn-handler"));
    await t.click(Selector('div:nth-child(3) label span.ot-switch-nob').filterVisible());
    await t.click(Selector('div:nth-child(4) label span.ot-switch-nob').filterVisible());
    await t.click(Selector('div:nth-child(5) label span.ot-switch-nob').filterVisible());
    await t.click('.save-preference-btn-handler.onetrust-close-btn-handler');
    await t.debug();
})


Your complete configuration file (if any):
{
  "screenshotPath": "screenshots",
  "browsers": "chrome",
  "screenshots": {
    "takeOnFails": true,
    "fullPage": true
  },
  "debugOnFail": false,
  "skipJsErrors": true,
  "disablePageCaching": false,
  "color": true,
  "speed": 0.90,
  "pageLoadTimeout": 30000,
  "assertionTimeout": 30000,
  "selectorTimeout": 30000,
  "concurrency": 1
}

Your Environment details:

  • testcafe version: 1.9.4
  • node.js version: v11.2.0 command-line arguments: no additional parameters
  • platform and version: Chrome - Version 85.0.4183.121 (Official Build) (64-bit)
  • other: win 10

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Farfurixcommented, Oct 7, 2020

@mariuspahontu

Thank you for the update. I reproduced the issue. Our team will examine it and check for a suitable solution.

For the team. test.js:

fixture `Fixture`
    .beforeEach(async t => {
        await t.maximizeWindow();
    });

test('test', async t => {
    await t.navigateTo('https://www.newegg.com/');
    await t.debug(); // See the "Cannot read property 'indexOf' of undefined" error in Chrome DevTools
});
0reactions
arubtsovcommented, Oct 30, 2020

@dalebaldwin Thank you for reaching out to us. For now, we will process your request in the context of the issue you created.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Adobe launch - Link Click Not firing
Solved: Hi We have LinkClick added Via Data layer implementation. I notice Adobe server call is not firing even though data layer works...
Read more >
Solved: s.tl() call fires but no image request
I've got a direct call rule in Launch that sets analytics variables and makes an s.tl() call. According to the debugger the rule...
Read more >
Solved: Image request show Event is fired 1 time, but repo...
Solved: Hi, I send an Event 1 time whenever I click on a button. However, the Adobe Analytics report show that Event is...
Read more >
Adobe Launch does not send track to Analytics
Recently I am working on integrating Adobe Launch with my application, and I am facing the following issue: My application is built under ......
Read more >
Re: Adobe Call not happening - Experience League Community
Are you able to see if rule is getting fired in developer console. To check that, type _satellite.setDebug(true) and see if the rule...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found