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.

[BUG] "TypeError: Cannot read properties of undefined (reading 'childFrames')" when running tests in Firefox

See original GitHub issue

Context:

  • Playwright Version: 1.28.0-alpha-oct-28-2022
  • Operating System: Mac (M1 Pro)
  • Node.js version: v16.16.0
  • Browser: Firefox
  • Extra:

Code Snippet

import { test } from '@playwright/test';

test('test', async ({ page }) => {
  await page.goto(
    'https://id2.navexglobal.com/SecureTokenServer/Auth/SamlLogin?SAMLRequest=jZJfa9swFMW%2FitF7LFsLaSbiQNpQFsg2t3b7sJciy9eJmCy5ulL%2FfPvKzko7xkpBD%2BLq8Lv3nKsVil4PfBP80VzDfQD0yVOvDfLpoSDBGW4FKuRG9IDcS15tvu85SzM%2BOOuttJokG0RwXllzYQ2GHlwF7kFJuLneF%2BTo%2FYCc0tZa1wuTGvEATwdtG6FTaXtaHVXTWA3%2BmCJaOuIZLX9WNUm2cR5lxEh%2B46iW%2FcsAGRzU9jeYsTU4OlqiVTSxtwdlSLLbFuSuW3YLaDNYZPOzufwSTytFEy9z1nXZYhlliAF2Br0wviAsY2yWZzO2rFnG48m%2F%2FiJJ%2Bcf3uTKtMoePQ2pOIuTf6rqcnWzdgsPJUhSQ9WqMmk%2BN3bvwP8aK18TJ%2BvP5rui7Vqe%2BA%2F8R2bttabWSz8lGa%2Ft44UB4KEhOkssR6f8%2FSp7mU0W1s26S8mBwAKk6BS1JqnKkXwWhx4IriAje9tM%2BfVwtKg%2BErk9j%2Ff0L1y8%3D&RelayState=cookie%3A1666988419_8131'
  );
  await page.getByPlaceholder('User name').fill('Martin1');
  await page.getByPlaceholder('Password').fill([PASSWORD]);
  await page.getByRole('button', { name: 'Sign In' }).click();
  await page
    .getByRole('link', { name: 'Policy & Procedure Management' })
    .click();
  await page.locator('id=SideBar_NewDocuments').click();
  const [page1] = await Promise.all([
    page.waitForEvent('popup'),
    page.getByRole('link', { name: 'HTML Document HTML Document' }).click(),
  ]);
  await page1
    .frameLocator('iframe[name="WizardPanelPropertiesEdit_Iframe"]')
    .locator('input[name="ctl00\\$ContentPlaceHolder1\\$TitleField"]')
    .fill('Test');
  await page1
    .frameLocator('iframe[name="WizardPanelPropertiesEdit_Iframe"]')
    .getByRole('button', { name: 'Save' })
    .click();
  await page1.getByRole('cell', { name: 'Reviewers' }).click();
  await page1
    .frameLocator('iframe[name="WizardPanelPropertiesEdit_Iframe"]')
    .frameLocator('#UserFinderFrame')
    .locator('input[type="checkbox"]')
    .check();
  await page1
    .frameLocator('iframe[name="WizardPanelPropertiesEdit_Iframe"]')
    .getByRole('button', { name: 'Save' })
    .click();
  await page1.getByRole('cell', { name: 'Approvers' }).click();
  await page1
    .frameLocator('iframe[name="WizardPanelPropertiesEdit_Iframe"]')
    .frameLocator('#UserFinderFrame')
    .locator('input[type="checkbox"]')
    .check();
  await page1
    .frameLocator('iframe[name="WizardPanelPropertiesEdit_Iframe"]')
    .getByRole('button', { name: 'Save' })
    .click();
});

Describe the bug

NOTICE - The password for this test is missing. Upon request, I can privately message it to whomever will be reviewing this issue. As per the request on this issue and this issue, I am opening a new issue. When running tests in Firefox, I am getting the following error: TypeError: Cannot read properties of undefined (reading 'childFrames')

I tried using next 1.28.0 which purportedly fixed it, but it still seems to be ran issue.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aslushnikovcommented, Dec 12, 2022

@eatonjl we debugged the root cause of this issue to an incorrect juggler event instrumentation in firefox but were not able to come up with a legit fix so far.

0reactions
eatonjlcommented, Dec 13, 2022

@aslushnikov thank you for the update! We are excited for when this is fixed and we can begin testing on Firefox.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Firefox: `TypeError: Cannot read properties of ... - GitHub
[BUG] "TypeError: Cannot read properties of undefined (reading 'childFrames')" when running tests in Firefox #18415.
Read more >
Intermittent test suite failures, TypeError: Cannot read property ...
When a test fails because of a "TypeError: Object #<Sockit> has no method ... the "Error: timeout of 60000ms exceeded"/"TypeError: Cannot read property...
Read more >
Uncaught TypeError: Cannot read properties of undefined ...
I just can assume, without knowing the exact error message, that the frameWidth and/or frameHeight is maybe too big (meaning: bigger than ...
Read more >
cannot read properties of undefined (reading 'locator') - You.com
microsoft/playwright[BUG] "TypeError: Cannot read properties of undefined (reading 'childFrames')" when running tests in Firefox#18415.
Read more >
Puppeteer documentation - DevDocs
The method runs document.querySelector within the page. If no element matches the selector, the return value resolves to null . Shortcut for page.mainFrame()....
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