-
-
Couldn't load subscription status.
- Fork 8.6k
[py] BiDi Network implementation of Intercepts and Auth in Python #14592
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
[py] BiDi Network implementation of Intercepts and Auth in Python #14592
Conversation
PR Reviewer Guide 🔍(Review updated until commit 00f76a5)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 00f76a5 Explore these optional code suggestions:
Previous suggestions✅ Suggestions up to commit 2b3bb2a
✅ Suggestions up to commit 01f6aaf
✅ Suggestions up to commit 14bf971
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
Thought I might need it, but didn't
|
was adding this to BUILD.bazel for easy testing: so i could run |
|
Think it's ready now... @AutomatedTester could you give it a look? |
|
Persistent review updated to latest commit 01f6aaf |
|
Any thoughts @p0deje @AutomatedTester ? |
|
Unrelated failure due to flaky test |
|
LGTM! Thanks! |
|
congrats on landing this! |
Thank you! |
|
How do I use the url_patterns for add_request_handler? I'm trying different formats, but I always get an invalid argument exception |
It should be a list of these objects: See: https://w3c.github.io/webdriver-bidi/#type-network-UrlPattern and https://w3c.github.io/webdriver-bidi/#command-network-addIntercept If you find a problem (which is certainly possible given the newness of our implementations, as well as the browsers') please create an issue with a reproducible example for us to diagnose. |
User description
Add implementations for BiDi Network's Auth and Interception to Python
Description
Added network.py:
Updated websocket_connection.py
Added bidi_network_tests.py
Motivation and Context
Issue #13993
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Added BiDi Network implementation for network interception and authentication.
Introduced
Network,Request, andNetworkEventclasses for handling network events.Extended WebDriver to include a
networkproperty for BiDi capabilities.Added comprehensive tests for BiDi Network functionality, including intercepts and authentication.
Changes walkthrough 📝
network.py
Implement BiDi Network functionality for intercepts and authenticationpy/selenium/webdriver/common/bidi/network.py
Networkclass for network interception and authentication.RequestandNetworkEventclasses for handling network requestsand events.
authentication handlers.
authentication.
webdriver.py
Extend WebDriver with BiDi Network integrationpy/selenium/webdriver/remote/webdriver.py
Networkclass into WebDriver via a newnetworkproperty.operations.
bidi_network_tests.py
Add tests for BiDi Network functionalitypy/test/selenium/webdriver/common/bidi_network_tests.py
functionality.
mechanisms.