Driver not initiating in UC Mode in Google Colab #2931
-
Hi. I am trying to initiate the driver in UC mode in Google Colab but it is not working. It works in non-UC Mode. Here is my code -
And here is the error - SessionNotCreatedException: Message: session not created: cannot connect to chrome at 127.0.0.1:9222 Though this code was working when I tried first, it stopped working suddenly after a day. What could be the reason? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I faced the same problem, Just install Google Chrome. |
Beta Was this translation helpful? Give feedback.
-
As mentioned in #2802 (reply in thread), you have to use regular chrome, not chromium. The binary would be called For UC Mode, you can no longer use Headless Mode if you want to remain undetected. With the virtual display that's included with the |
Beta Was this translation helpful? Give feedback.
As mentioned in #2802 (reply in thread), you have to use regular chrome, not chromium. The binary would be called
google-chrome
orgoogle-chrome-stable
on Linux.For UC Mode, you can no longer use Headless Mode if you want to remain undetected. With the virtual display that's included with the
SB(uc=True)
format, you can run non-headless Chrome on a machine with no display.