Followed the steps in the README.md to test this. This is the output I got.
Collecting information about the system:
Darwin
24.0.0
Darwin Kernel Version 24.0.0: Tue Sep 24 23:36:26 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8103
uname_result(system='Darwin', node='MacBookAir', release='24.0.0', version='Darwin Kernel Version 24.0.0: Tue Sep 24 23:36:26 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8103', machine='arm64')
Looking for browser:
looking for chrome
looking for None
looking for Chrome
looking for None
looking for google-chrome
looking for None
looking for google-chrome-stable
looking for None
looking for Chrome.app
looking for None
looking for Google Chrome
looking for None
looking for Google Chrome.app
looking for None
looking for chromium
looking for None
looking for chromium-browser
looking for None
Looking at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
****Looking for version info:
b'async-timeout==4.0.3\ndevtools @ file:///Users/amiradoghri/Documents/Plotly/devtools_protocol\nexecnet==2.1.1\niniconfig==2.0.0\npackaging==24.1\npluggy==1.5.0\npytest==8.3.3\npytest-asyncio==0.24.0\npytest-xdist==3.6.1\n'
b'heads/main-0-g8bb9fad\n'
3.12.4 (main, Jun 6 2024, 18:26:44) [Clang 15.0.0 (clang-1500.3.9.4)]
sys.version_info(major=3, minor=12, micro=4, releaselevel='final', serial=0)
Done with version info.******Sync test headless****
DEBUG REPORT:
BROWSER_PATH: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
USER_DATA_DIR: /var/folders/8p/zpjsnb3s48b7bj_lqpwnkvk00000gn/T/tmp4gy1v7xd
Old Headless mode will be removed from the Chrome binary soon. Please use the new Headless mode (https://developer.chrome.com/docs/chromium/new-headless) or the chrome-headless-shell which is a standalone implementation of the old Headless mode (https://developer.chrome.com/blog/chrome-headless-shell).
[1007/191438.585606:WARNING:viz_main_impl.cc(85)] VizNullHypothesis is disabled (not a warning)
write_json:
write_json: {"id": 0, "method": "Browser.close"}
[1007/191439.439361:ERROR:devtools_pipe_handler.cc(188)] Connection terminated while reading from pipe
[1007/191439.442358:ERROR:devtools_pipe_handler.cc(273)] Could not write into pipe
[1007/191439.442375:ERROR:devtools_pipe_handler.cc(273)] Could not write into pipe
Exception ignored in: <_io.TextIOWrapper name='' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
pipe.close() (or slow Browser.close) method closed browser
Expected error unblocking 4: [Errno 9] Bad file descriptor
Expected error unblocking 3: [Errno 9] Bad file descriptor
Expected error unblocking 6: [Errno 9] Bad file descriptor
Expected error unblocking 5: [Errno 9] Bad file descriptor
Expected error closing 6: [Errno 9] Bad file descriptor
Expected error closing 3: [Errno 9] Bad file descriptor
Expected error closing 4: [Errno 9] Bad file descriptor
Expected error closing 5: [Errno 9] Bad file descriptor
Tempfile still exists?: False
Done with sync test headless
***Async Test headless****
DEBUG REPORT:
BROWSER_PATH: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
USER_DATA_DIR: /var/folders/8p/zpjsnb3s48b7bj_lqpwnkvk00000gn/T/tmpdmcoh10r
read_jsons (blocking):
write_json:
write_json: {"id": 0, "method": "Target.getTargets"}
Old Headless mode will be removed from the Chrome binary soon. Please use the new Headless mode (https://developer.chrome.com/docs/chromium/new-headless) or the chrome-headless-shell which is a standalone implementation of the old Headless mode (https://developer.chrome.com/blog/chrome-headless-shell).
{"id":0,"result":{"targetInfos":[]}}
read_jsons: {'id': 0, 'result': {'targetInfos': []}}
run_read_loop() found future for key ('', 0)
read_jsons (blocking):
[1007/191439.891597:WARNING:viz_main_impl.cc(85)] VizNullHypothesis is disabled (not a warning)
write_json:
write_json: {"id": 1, "method": "Browser.close"}
{"id":1,"result":{}}
read_jsons: {'id': 1, 'result': {}}
run_read_loop() found future for key ('', 1)
read_jsons (blocking):
read_jsons pipe was closed, raising
caught OSError in read()
[1007/191442.795313:ERROR:devtools_pipe_handler.cc(188)] Connection terminated while reading from pipe
PipeClosedError caught
Exception ignored in: <_io.TextIOWrapper name='' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
pipe.close() method closed browser
Expected error unblocking 7: [Errno 9] Bad file descriptor
Expected error unblocking 6: [Errno 9] Bad file descriptor
Expected error unblocking 9: [Errno 9] Bad file descriptor
Expected error unblocking 8: [Errno 9] Bad file descriptor
Expected error closing 9: [Errno 9] Bad file descriptor
Expected error closing 6: [Errno 9] Bad file descriptor
Expected error closing 7: [Errno 9] Bad file descriptor
Expected error closing 8: [Errno 9] Bad file descriptor
Tempfile still exists?: False
**Done with async test headless***
Followed the steps in the README.md to test this. This is the output I got.
Collecting information about the system: Darwin 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:36:26 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8103 uname_result(system='Darwin', node='MacBookAir', release='24.0.0', version='Darwin Kernel Version 24.0.0: Tue Sep 24 23:36:26 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8103', machine='arm64') Looking for browser: looking for chrome looking for None looking for Chrome looking for None looking for google-chrome looking for None looking for google-chrome-stable looking for None looking for Chrome.app looking for None looking for Google Chrome looking for None looking for Google Chrome.app looking for None looking for chromium looking for None looking for chromium-browser looking for None Looking at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome /Applications/Google Chrome.app/Contents/MacOS/Google Chrome ****Looking for version info: b'async-timeout==4.0.3\ndevtools @ file:///Users/amiradoghri/Documents/Plotly/devtools_protocol\nexecnet==2.1.1\niniconfig==2.0.0\npackaging==24.1\npluggy==1.5.0\npytest==8.3.3\npytest-asyncio==0.24.0\npytest-xdist==3.6.1\n' b'heads/main-0-g8bb9fad\n' 3.12.4 (main, Jun 6 2024, 18:26:44) [Clang 15.0.0 (clang-1500.3.9.4)] sys.version_info(major=3, minor=12, micro=4, releaselevel='final', serial=0) Done with version info.** ****Sync test headless**** DEBUG REPORT: BROWSER_PATH: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome USER_DATA_DIR: /var/folders/8p/zpjsnb3s48b7bj_lqpwnkvk00000gn/T/tmp4gy1v7xd Old Headless mode will be removed from the Chrome binary soon. Please use the new Headless mode (https://developer.chrome.com/docs/chromium/new-headless) or the chrome-headless-shell which is a standalone implementation of the old Headless mode (https://developer.chrome.com/blog/chrome-headless-shell).
[1007/191438.585606:WARNING:viz_main_impl.cc(85)] VizNullHypothesis is disabled (not a warning) write_json: write_json: {"id": 0, "method": "Browser.close"} [1007/191439.439361:ERROR:devtools_pipe_handler.cc(188)] Connection terminated while reading from pipe [1007/191439.442358:ERROR:devtools_pipe_handler.cc(273)] Could not write into pipe [1007/191439.442375:ERROR:devtools_pipe_handler.cc(273)] Could not write into pipe Exception ignored in: <_io.TextIOWrapper name='' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
pipe.close() (or slow Browser.close) method closed browser
Expected error unblocking 4: [Errno 9] Bad file descriptor
Expected error unblocking 3: [Errno 9] Bad file descriptor
Expected error unblocking 6: [Errno 9] Bad file descriptor
Expected error unblocking 5: [Errno 9] Bad file descriptor
Expected error closing 6: [Errno 9] Bad file descriptor
Expected error closing 3: [Errno 9] Bad file descriptor
Expected error closing 4: [Errno 9] Bad file descriptor
Expected error closing 5: [Errno 9] Bad file descriptor
Tempfile still exists?: False
Done with sync test headless
***Async Test headless****
DEBUG REPORT:
BROWSER_PATH: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
USER_DATA_DIR: /var/folders/8p/zpjsnb3s48b7bj_lqpwnkvk00000gn/T/tmpdmcoh10r
read_jsons (blocking):
write_json:
write_json: {"id": 0, "method": "Target.getTargets"}
Old Headless mode will be removed from the Chrome binary soon. Please use the new Headless mode (https://developer.chrome.com/docs/chromium/new-headless) or the chrome-headless-shell which is a standalone implementation of the old Headless mode (https://developer.chrome.com/blog/chrome-headless-shell).
{"id":0,"result":{"targetInfos":[]}} read_jsons: {'id': 0, 'result': {'targetInfos': []}} run_read_loop() found future for key ('', 0) read_jsons (blocking): [1007/191439.891597:WARNING:viz_main_impl.cc(85)] VizNullHypothesis is disabled (not a warning) write_json: write_json: {"id": 1, "method": "Browser.close"} {"id":1,"result":{}} read_jsons: {'id': 1, 'result': {}} run_read_loop() found future for key ('', 1) read_jsons (blocking): read_jsons pipe was closed, raising caught OSError in read() [1007/191442.795313:ERROR:devtools_pipe_handler.cc(188)] Connection terminated while reading from pipe PipeClosedError caught Exception ignored in: <_io.TextIOWrapper name='' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
pipe.close() method closed browser
Expected error unblocking 7: [Errno 9] Bad file descriptor
Expected error unblocking 6: [Errno 9] Bad file descriptor
Expected error unblocking 9: [Errno 9] Bad file descriptor
Expected error unblocking 8: [Errno 9] Bad file descriptor
Expected error closing 9: [Errno 9] Bad file descriptor
Expected error closing 6: [Errno 9] Bad file descriptor
Expected error closing 7: [Errno 9] Bad file descriptor
Expected error closing 8: [Errno 9] Bad file descriptor
Tempfile still exists?: False
**Done with async test headless***
Thank you! Please share these results with us!