You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked the documentation to confirm this feature doesn't already exist.
Problem Statement
Many times a button click should trigger a page load and you need to wait for the new page to be loaded.
You can wait for this by waiting for a certain element to be visible on the next page, but many times this is not possible.
In my case it is because besides for some changed cookies, the next page is completely identical to the 1st page.
Proposed Solution
I would love to have an async context manager which only returns when a load event is fired.
This is how I'm using it in my code.
Checklist before requesting
Problem Statement
Many times a button click should trigger a page load and you need to wait for the new page to be loaded.
You can wait for this by waiting for a certain element to be visible on the next page, but many times this is not possible.
In my case it is because besides for some changed cookies, the next page is completely identical to the 1st page.
Proposed Solution
I would love to have an async context manager which only returns when a load event is fired.
This is how I'm using it in my code.
Usage would look like
Alternatives Considered
No response
Additional Context
No response
Importance
Important
Contribution
Yes, I'd be willing to implement this feature
The text was updated successfully, but these errors were encountered: