-
Greetings! I have a problem with launching SeleniumBase Python script on the Linux server (Ubuntu 20.04) by crontab. With manually launching by SSH it works perfectly. Script fails from the start, it looks like this: with SB(uc=True, xvfb=True) as sb:
url = "https://www.google.com/"
sb.uc_open_with_disconnect(url, 5) Got this error in log file:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
See https://github.com/search?q=repo%3Aseleniumbase%2FSeleniumBase+unknown+error%3A+cannot+connect+to+chrome&type=discussions |
Beta Was this translation helpful? Give feedback.
-
It turned out to be very simple - you need to point your finger at the location of the browser google-chrome by |
Beta Was this translation helpful? Give feedback.
It turned out to be very simple - you need to point your finger at the location of the browser google-chrome by
binary_location = '/usr/bin/google-chrome'
. Hmm, it looks like CRON can't automatically find the path to the browser and doesn't use any default paths to it (they are usually the same for Linux)