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

waitForPopup #17

Closed
JoelEinbinder opened this issue Nov 19, 2019 · 3 comments
Closed

waitForPopup #17

JoelEinbinder opened this issue Nov 19, 2019 · 3 comments
Assignees

Comments

@JoelEinbinder
Copy link
Contributor

No description provided.

@JoelEinbinder
Copy link
Contributor Author

This gets tricky with whether waitForPopup should return only new popups, or query existing ones.
Dmitry needs the former. waitForNextPopup seems like a more explicit way of naming this. We may want to change browser.waitForTarget to be getOrWaitForTarget. We may also want to extend all of our event emitters with a fancy oncePromise method.

@dgozman
Copy link
Contributor

dgozman commented Dec 19, 2019

Generic waitForEvent now works for this thanks to #278. However, there is still a question whether we should only report popups after the first navigation is done, or provide some way to wait for it.

@dgozman
Copy link
Contributor

dgozman commented Jan 8, 2020

We now have popup.waitForLoadState which solves the first navigation issue.

@dgozman dgozman closed this as completed Jan 8, 2020
sand4rt pushed a commit to sand4rt/playwright that referenced this issue Dec 21, 2022
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