-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py][bidi]: add test for downloadEnd
event
#16325
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
See the PR bot's mention of "Event Ordering Assumption". The test assertions assume Besides that, LGTM. |
Done |
I just thought of something else... I think we currently launch a new browser for every BiDi test, so this probably isn't an issue... but if we switch to re-using the browser like we do on non-BiDi tests, we will want to ensure that event handlers get removed in the case of a test failure so they don't leak into other tests. Maybe we should add something to the |
That's true, I will see if we can reuse the browsers after removing the handlers. The issue I see is how do we remove all the handlers for all the modules, we do have some methods in some modules that remove all handlers in that module but still calling all of them in conftest seems not so good. |
User description
🔗 Related Issues
Test for #16209, Chrome 140 supports this event.
💥 What does this PR do?
Adds test for the
downloadEnd
browsing context event.🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Tests
Description
Add test for
downloadEnd
BiDi browsing context eventVerify download completion event handling and parameters
Test multiple file downloads with status validation
Diagram Walkthrough
File Walkthrough
bidi_browsing_context_tests.py
Add downloadEnd event handler test
py/test/selenium/webdriver/common/bidi_browsing_context_tests.py
test_add_event_handler_download_end
test function