Skip to content

Commit 994fe95

Browse files
committed
added session_subscribe() to __on()
1 parent ea577f5 commit 994fe95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/selenium/webdriver/common/bidi/network.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def __continue_with_auth(self, request_id, username, password):
108108

109109
def __on(self, event, callback):
110110
"""Set a callback function to subscribe to a network event."""
111+
self.conn.execute(session_subscribe(event))
111112
event = self.EVENTS.get(event, event)
112113
self.callbacks[event] = callback
113114
if len(self.subscriptions[event]) == 0:

0 commit comments

Comments
 (0)