Closed Arooba-git closed 1 year ago
Just to show the initial URL is the same as used in the conditional expression in the post:
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 🤔
There are several different errors in on your console screenshots.
ReferenceError: addRow is not defined
seems to be a bug in either Puppeteer or Chromium.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:
action
are expected to be released. 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)
I see.. thanks for the prompt response!
btw I was wondering if it could also be due to this issue: https://github.com/puppeteer/puppeteer/issues/257
Looks like a different issue since Puppeteer doesn't get stuck based on your description.
Hi 👋 I am executing Memlab on a website locally, where the home logo's click reloads the page and goes to home URL. But since Memlab does not support reload, I figured the only way I can go back to home (the initial URL), is to
page.goBack
while URL !== [home URL]:but it runs into this error:
I also tried this way
but same result :/ Would apprictae any guidance/help in this regard. Cheers! ✌️