DEV Community

bankasindhuja98
bankasindhuja98

Posted on

How can we enter our User Id and Password in a windows Popup using Puppeteer?

After the page is redirected I was not able to generate a pdf as I was not able to mention my UserId and password in the windows popup dialog box as mentioned in the image.
https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1j4ihsc7fh0f29egednk.png

1.Tried using cookies but didn't get a solution.
2.Tried to use "await page.keyboard.type('xyz@abc.com');" but the text is not getting dumped into the Username field.

How can we enter our details in that dialog box to move to the next page?

Looking for help if we have any other way to enter our details in the windows popup and proceed further?

Top comments (0)