cr_exceptions.ChromeStartupException("No tabs in started chromium?")
$ /usr/bin/google-chrome --version
Google Chrome 116.0.5845.96
At response = requests.get("http://%s:%s/json" % (self.host, self.port)), seems at least after version 113, endpoint /josn will not return any thing.
This could be fixed by adding "about:blank" to force Chrome open with at least one page.
refer to the comment of the first answer: https://stackoverflow.com/questions/75837204/google-chrome-headless-remote-debugging-no-response-on-json-url/75864268#75864268
Another bug is websocket will return if no "--remote-allow-origins=*" passed:
refer to : https://stackoverflow.com/questions/75718422/org-openqa-selenium-remote-http-connectionfailedexception-unable-to-establish-w
I think both arguments should be added by default unless user already provided them.
I believe this is already fixed in 049a7aa803eb3913e1f73093fa5e2e5839a52d51.
Can you try installing from git?
This could be fixed by adding "about:blank" to force Chrome open with at least one page.
I already do this in the contexts where multiple tabs are used. The manager maintains a empty tab to prevent chrome from closing unexpectedly.
I think https://github.com/fake-name/ChromeController/commit/049a7aa803eb3913e1f73093fa5e2e5839a52d51 fix both problem.
But why it is not released to pypi for months?
Because I'm bad at things?