feat: set page viewport size
This commit is contained in:
@@ -287,6 +287,7 @@ export default class Interpreter extends EventEmitter {
|
|||||||
this.concurrency.addJob(async () => {
|
this.concurrency.addJob(async () => {
|
||||||
try {
|
try {
|
||||||
const newPage = await context.newPage();
|
const newPage = await context.newPage();
|
||||||
|
await newPage.setViewportSize({ width: 900, height: 400 });
|
||||||
await newPage.goto(link);
|
await newPage.goto(link);
|
||||||
await newPage.waitForLoadState('networkidle');
|
await newPage.waitForLoadState('networkidle');
|
||||||
await this.runLoop(newPage, this.initializedWorkflow!);
|
await this.runLoop(newPage, this.initializedWorkflow!);
|
||||||
|
|||||||
Reference in New Issue
Block a user