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.

Frame navigated event did not trigger.

See original GitHub issue

Details for the environment. Puppeteer version: 5.2.1 Platform / OS version: Ubuntu 18.04.5 LTS URLs (if applicable):https://www.nokia.com/about-us/investors/investor-relations-events/ Node.js version: v10.22.0

What steps will reproduce the problem? Framenavigated event does not trigger for few frames on this page. Frame1 Upcoming events Frame2 Past events

Code:

const browser = await puppeteer.launch({
        headless: false
    });
const page = await browser.newPage();
page.on("frameattached", (frame) => {
        console.log("frameattached", frame.url(), frame._id);
});
page.on("framenavigated", (frame) => {
        console.log("framenavigated", frame.url(), frame._id);
});
page.on("framedetached", (frame) => {
        console.log("framedetached", frame.url(), frame._id);
    });
await page.goto('https://www.nokia.com/about-us/investors/investor-relations-events/');

Expected result: Frame navigated events for all the frames on the page.

Actual result: Frame navigated event was triggered only for the mainframe.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kanishkadistillcommented, Dec 16, 2020

Additionally, calling page.frames() does not return all the frames in a page.

@vsemozhetbyt framenavigated is fired for all frames in a page that is navigated.

0reactions
stale[bot]commented, Jul 24, 2022

We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frame Navigating Event does not trigger most of the ... - MSDN
Where I am doing wrong?? I want to trigger navigating event in individual page viewmodel without violating MVVM principles. Also how can I...
Read more >
Frame.Navigate not working - Stack Overflow
It is hard to figure out the problem with given description. But, you can handle the NavigationFailed event to respond to navigation failure...
Read more >
Window: unload event - Web APIs | MDN
The unload event is fired when the document or a child resource is being unloaded.
Read more >
Event Frame Not Triggering - PI Square - OSIsoft
I have an Analysis setup that compares the current value to a value 1 minute ago. I can see the values of the...
Read more >
Prototype triggers - Figma Help Center
You can use this trigger for navigating drop-down menus, or replicating ... You can only apply this to a top-level Frame, not a...
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