Answer the question
In order to leave comments, you need to log in
How to shorten entry on nodejs, puppeteer?
I use node.js, puppeteer. There is such a code
let clicked_editorial_button = await page.evaluate(() => {
if(document.querySelector("button.section-editorial-button") !== null)
{
document.querySelector('button.section-editorial-button').click();
return true;
}
else
{
return false;
}
});
let clicked_editorial_button = await page.evaluate(() => {
return document.click_or_return_false("button.section-editorial-button");
});
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