Answer the question
In order to leave comments, you need to log in
How to pass URL as variable to Puppeteera's page.goto()?
Hello everyone, I need to pass a link to the site in a variable that receives data from the console. But page.goto throws an error
rl.question('please enter the link:', function (link) {
url=link;
rl.close();
});
await page.goto(url);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question