fix: mobile gdpr popup scroll too long todo

This commit is contained in:
HugoPoi 2021-07-19 17:14:01 +02:00
parent b8a620025e
commit 24daadf0b1

View File

@ -238,10 +238,9 @@ class GoogleScraper extends Scraper {
const buttonAccepted = await this.page.$('#L2AGLb');
if (buttonAccepted) {
await buttonAccepted.evaluate((e) =>
e.scrollIntoView({ block: "center", inline: "center" })
);
await buttonAccepted.click();
await this.page.evaluate(() => {
document.querySelector('#L2AGLb').click();
});
}
return true;