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

File chooser API not working with electron #14569

Closed
ptc-aramachandra opened this issue Jun 2, 2022 · 3 comments
Closed

File chooser API not working with electron #14569

ptc-aramachandra opened this issue Jun 2, 2022 · 3 comments

Comments

@ptc-aramachandra
Copy link

Using the following https://playwright.dev/docs/api/class-filechooser to achieve handling of file chooser.

scenario: I have a browse button which will open a file chooser and i have to select a directory here.

As mentioned in the above API, I used this.page.waitForEvent('filechooser'), and it fails for me with a timeout saying not able to find the event page.waitForEvent: Timeout 30000ms exceeded while waiting for event "filechooser"

Any idea why this is not working ?

@aslushnikov
Copy link
Collaborator

Looks like a dupe of #8278

@ptc-aramachandra
Copy link
Author

Is there a solution for this ? Or is this a feature to include in the future ?

@aslushnikov
Copy link
Collaborator

I don't think there's a solution; feel free to upvote the #8278 to get notified on the updates there!

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