変更前
await page._client.send(
'Input.synthesizeScrollGesture',
{
x: 0,
y: 0,
xDistance: 0,
yDistance: distance,
repeatCount: 5,
repeatDelayMs: 200
}
);
変更後
const client = await page.target().createCDPSession();
await client.send(
'Input.synthesizeScrollGesture',
{
x: 0,
y: 0,
xDistance: 0,
yDistance: distance,
repeatCount: 5,
repeatDelayMs: 200
}
);
コメント