Код: Выделить всё
p = subprocess.Popen([
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
f"--remote-debugging-port={SOME_PORT_NUM}",
"--no-first-run",
"--no-default-browser-check",
"--disable-popup-blocking",
"--start-maximised",
"--user-data-dir=/tmp/chrome-profile"
])
p.wait()
print("exited")
Код: Выделить всё
Opening in existing browser session.
exited
Подробнее здесь: https://stackoverflow.com/questions/798 ... e-on-macos
Мобильная версия