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.

How to go back to home using while loop

See original GitHub issue

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]:

Screen Shot 2022-12-07 at 11 48 16 AM

but it runs into this error: Screen Shot 2022-12-07 at 11 49 31 AM

I also tried this way Screen Shot 2022-12-07 at 11 42 36 AM

but same result 😕 Would apprictae any guidance/help in this regard. Cheers! ✌️

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JacksonGLcommented, Dec 7, 2022

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

0reactions
Arooba-gitcommented, Dec 7, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

looping back to beginning of statement using while loop (java)
Initialize the input with a value (0). And inform the user if they type in a certain value (i.e. -1) the loop ends....
Read more >
Break Statement & Do While Loop
The purpose the break statement is to break out of a loop early. For example if the following code asks a use input...
Read more >
break, continue, and return :: Learn Python by Nina Zakharenko
Instead, it goes back to the start of the loop, skipping over any other statements contained within ... You can also use break...
Read more >
How to use a "While" loop with "if " loops to go back to the ...
So I would first input "1" it would give me an answer and ask me to input something else. Then, when I input...
Read more >
Java While Loop - W3Schools
The do/while loop is a variant of the while loop. This loop will execute the code block once, before checking if the condition...
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