mirror of
https://github.com/NikolaiT/se-scraper.git
synced 2025-03-13 12:38:16 +01:00
fix(google): gdpr popup on mobile need to be scrolled
This commit is contained in:
parent
a73ccbce1a
commit
b8a620025e
@ -238,6 +238,9 @@ class GoogleScraper extends Scraper {
|
|||||||
|
|
||||||
const buttonAccepted = await this.page.$('#L2AGLb');
|
const buttonAccepted = await this.page.$('#L2AGLb');
|
||||||
if (buttonAccepted) {
|
if (buttonAccepted) {
|
||||||
|
await buttonAccepted.evaluate((e) =>
|
||||||
|
e.scrollIntoView({ block: "center", inline: "center" })
|
||||||
|
);
|
||||||
await buttonAccepted.click();
|
await buttonAccepted.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user