I'm trying to understand the current implementation status of BiDi network monitoring in Python Selenium. The API appears to exist but doesn't seem to function as expected.
What I've Discovered
These Work (API Surface Exists)
```
from selenium.webdriver.common.bidi.network import Network, NetworkEvent
# Import succeeds
network = Network(driver)
# Method exists and is callable
print(dir(Network)) # Shows add_request_handler, remove_request_handler, etc.
# Constants exist
print(Network.EVENTS['response_completed']) # Returns 'network.responseCompleted'
```
This Fails (Actual Functionality)
```
def response_handler(event):
print(f"Network event: {event}")
# This call fails with: "Event network.responseCompleted not found"
network.add_request_handler(
Network.EVENTS['response_completed'],
response_handler
)
```
Browser Setup
```
options = webdriver.ChromeOptions()
options.set_capability('webSocketUrl', True)
driver = webdriver.Chrome(service=service, options=options)
```
My Questions
What I've Tried
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/selenium-users/da8bf41a-e9dd-46b3-b975-5cabb41d3a5fn%40googlegroups.com.