ChromeController icon indicating copy to clipboard operation
ChromeController copied to clipboard

cr_exceptions.ChromeStartupException("No tabs in started chromium?")

Open PaleNeutron opened this issue 2 years ago • 3 comments

 $ /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.

PaleNeutron avatar Aug 18 '23 03:08 PaleNeutron

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.

fake-name avatar Aug 20 '23 08:08 fake-name

I think https://github.com/fake-name/ChromeController/commit/049a7aa803eb3913e1f73093fa5e2e5839a52d51 fix both problem.

But why it is not released to pypi for months?

PaleNeutron avatar Aug 20 '23 12:08 PaleNeutron

Because I'm bad at things?

fake-name avatar Aug 21 '23 05:08 fake-name