mirror of
https://github.com/NikolaiT/se-scraper.git
synced 2025-03-13 12:38:16 +01:00
fix: mobile gdpr popup scroll too long todo
This commit is contained in:
parent
b8a620025e
commit
24daadf0b1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user