Код: Выделить всё
const element = [...document.querySelectorAll('span,button,div,a')].find(el => el.textContent.includes('Doorgaan met Google'));
// Check if the element is found and click it
if (element) {
element.click();
console.log('Button clicked successfully!');
} else {
console.error('Button not found!');
}
Кто-нибудь знает, чем это вызвано?
Заранее спасибо.
Подробнее здесь: https://stackoverflow.com/questions/793 ... -pyppeteer
Мобильная версия