MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / get_websocket_url

Method get_websocket_url

seleniumbase/core/sb_cdp.py:252–255  ·  view source on GitHub ↗

Returns the websocket URL of the active tab. The websocket URL starts with `ws://`.

(self)

Source from the content-addressed store, hash-verified

250 return self.get_rd_port()
251
252 def get_websocket_url(self):
253 """Returns the websocket URL of the active tab.
254 The websocket URL starts with `ws://`."""
255 return self.get_active_tab().websocket_url
256
257 def add_handler(self, event, handler):
258 self.page.add_handler(event, handler)

Callers

nothing calls this directly

Calls 1

get_active_tabMethod · 0.95

Tested by

no test coverage detected