Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to handle dialog box (promptUserAndPass) which shows up when landing on page #4859

Closed
leochung042 opened this issue Dec 31, 2020 · 2 comments

Comments

@leochung042
Copy link

Hi All

Currently, I facing this directly showing up dialog box when landing on page.
How do we handle dialog box popup when landing on the page without any click event.
Also the dialog needs to be enter username and password.

Thank you,
Leo

@leochung042 leochung042 changed the title How to handle dialog box which shows up when landing on page [Question] How to handle dialog box which shows up when landing on page Jan 4, 2021
@leochung042 leochung042 changed the title [Question] How to handle dialog box which shows up when landing on page [Question] How to handle dialog box (promptUserAndPass) which shows up when landing on page Jan 4, 2021
@pavelfeldman
Copy link
Member

Should be something like

page.on('dialog', dialog => dialog.accept())

before you navigate.

@pavelfeldman
Copy link
Member

We need your response to act on this, please feel free to open a new issue with more details!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants