MCPcopy
hub / github.com/mitmproxy/mitmproxy / start

Method start

mitmproxy/addons/browser.py:40–49  ·  view source on GitHub ↗
(self, browser: str = "chrome")

Source from the content-addressed store, hash-verified

38
39 @command.command("browser.start")
40 def start(self, browser: str = "chrome") -> None:
41 if len(self.browser) > 0:
42 logging.log(ALERT, "Starting additional browser")
43
44 if browser in ("chrome", "chromium"):
45 self.launch_chrome()
46 elif browser == "firefox":
47 self.launch_firefox()
48 else:
49 logging.log(ALERT, "Invalid browser name.")
50
51 def launch_chrome(self) -> None:
52 """

Callers 15

test_browserFunction · 0.95
test_no_browserFunction · 0.95
test_tcp_start_stopFunction · 0.45
test_tcp_timeoutFunction · 0.45
test_transparentFunction · 0.45
test_wireguardFunction · 0.45
test_tcp_start_errorFunction · 0.45
test_invalid_protocolFunction · 0.45

Calls 3

launch_chromeMethod · 0.95
launch_firefoxMethod · 0.95
logMethod · 0.45

Tested by 15

test_browserFunction · 0.76
test_no_browserFunction · 0.76
test_tcp_start_stopFunction · 0.36
test_tcp_timeoutFunction · 0.36
test_transparentFunction · 0.36
test_wireguardFunction · 0.36
test_tcp_start_errorFunction · 0.36
test_invalid_protocolFunction · 0.36