This commit is contained in:
Tianbao Xie
2025-02-10 12:55:44 +08:00
committed by GitHub
parent 0bc1e08440
commit f4750701d4

View File

@@ -533,7 +533,7 @@ def get_open_tabs_info(env, config: Dict[str, str]):
], "shell": False})
headers = {"Content-Type": "application/json"}
requests.post("http://" + host + ":" + server_port + "/setup" + "/launch", headers=headers, data=payload)
requests.post(f"http://{host}:{server_port}/setup/launch", headers=headers, data=payload)
time.sleep(5)
try:
browser = p.chromium.connect_over_cdp(remote_debugging_url)