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

Auto-handle user prompts #556

Open
jgraham opened this issue Sep 25, 2023 · 1 comment
Open

Auto-handle user prompts #556

jgraham opened this issue Sep 25, 2023 · 1 comment
Labels
browsingContext Browsing Context module enhancement New feature or request needs-discussion Issues to be discussed by the working group

Comments

@jgraham
Copy link
Member

jgraham commented Sep 25, 2023

Currently our handling of prompts and other alerts isn't ideal

  • For alert() and friend you always have to subscribe to the events and handle an alert explicitly. If you aren't subscribed then the session will be blocked indefinitely on the alert with no way for the client to know what to do.
  • For file pickers, Add file dialog events and methods #535 currently has a proposal to auto-dismiss if there's an event subscription, relying on the fact that setFiles can be called even if the file-picker isn't displayed.

Generally we probably want something that allows specifying the behaviour. For the file dialog case, it seems reasonable that in some cases I might want to know that there's a file dialog, but I might not want to dismiss it without either user interaction or the setFiles command. And for the alert() case it seems likely that there's cases where I just don't care about the alerts and want them to always be auto-dismissed.

@jgraham
Copy link
Member Author

jgraham commented Sep 25, 2023

So possibly the solution here is something like WebDriver's user prompt handling capability, that would allow a session to set up how it wants to handle user prompts, maybe on a case-by-case basis.

@whimboo whimboo added enhancement New feature or request browsingContext Browsing Context module needs-discussion Issues to be discussed by the working group labels Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browsingContext Browsing Context module enhancement New feature or request needs-discussion Issues to be discussed by the working group
Projects
None yet
Development

No branches or pull requests

2 participants