Giter VIP home page Giter VIP logo

Comments (5)

JacksonGL avatar JacksonGL commented on August 18, 2024 1

Looks like a different issue since Puppeteer doesn't get stuck based on your description.

from memlab.

Arooba-git avatar Arooba-git commented on August 18, 2024

Just to show the initial URL is the same as used in the conditional expression in the post:
Screen Shot 2022-12-07 at 11 57 55 AM

from memlab.

Arooba-git avatar Arooba-git commented on August 18, 2024

btw I logged the URL in the loop and it seems it does reach the specified URL.. then not sure why it ends up reloading instead of terminating there 🤔

Screen Shot 2022-12-07 at 12 05 28 PM

from memlab.

JacksonGL avatar JacksonGL commented on August 18, 2024

There are several different errors in on your console screenshots.

  1. The ReferenceError: addRow is not defined seems to be a bug in either Puppeteer or Chromium.
  2. When MemLab reports Error: the page is reloaded, it means MemLab found that the JavaScript heap has been cleared and reinitialized. So it means the web page under test reloads when page.goBack() is called.

To find memory leaks in MemLab, we often recommend the following test step sequence as a good practice:

A (url) -> B (action) -> A (back)

But when this is hard to achieve (like testing your web page), you don't really have to go back to the initial state. The MemLab back callback just need to make the web page reach a state where the following conditions are satisfied:

  1. The memory allocated in action are expected to be released.
  2. The JS heap is not reset (by a page reload)

So depending on the logic of the app under test,back could be navigating to a different page or triggering a different interaction, for Example, something like:

A (url) -> B (action) -> C (back)

from memlab.

Arooba-git avatar Arooba-git commented on August 18, 2024

I see.. thanks for the prompt response!

btw I was wondering if it could also be due to this issue:
puppeteer/puppeteer#257

from memlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.