fix chrome finished

This commit is contained in:
yuanmengqi
2025-07-02 09:22:42 +00:00
parent 144a87fd9a
commit ca24d308bd
8 changed files with 19 additions and 19 deletions

View File

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