I’m doing a project with Node.JS and Puppeteer, I need him to click the Dialog Box

Asked

Viewed 40 times

-1

I’m making an automation app but I’m stuck on the part where it opens the Zoom app.

Para abrir aplicativo da Zoom

I need him to click Open Zoom Meetings, tried to use:

 //Pagina do Zoom
    Zoom: async () => {

        //Dialog Box
        await objetivo.pagina.waitForNavigation({
            waitUntil: "networkidle2"
        });
        await objetivo.pagina.on('console', dialog => {
            dialog.accept();
        });
    },

Code didn’t work, I tried to use page.keyboard.press("Enter") but msm so did not work.

1 answer

0

The event is of the class Dialog

await project.page.on('dialog', dialog => {
            dialog.accept();
        });

Browser other questions tagged

You are not signed in. Login or sign up in order to post.