I installed the most up-to-date version of Chrome, then I verified that the execution_path of the webdriver.Chrome was deprecated, I put the Selenium Service lib and still I can't connect, what could be happening in the code?
def create_selenium_driver(): chrome_options = webdriver.ChromeOptions() chrome_options.add_argument('--no-sandbox') chrome_options.add_argument('--headless') chrome_options.add_argument('--disable-dev-shm-usage') prefs = {"download.default_directory" : "/tmp/chrome_downloads/", 'profile.default_content_setting_values.automatic_downloads': 1} chrome_options.add_experimental_option("prefs",prefs) chrome_driver = "/tmp/chromedriver/chromedriver" s = Service(chrome_driver) driver = webdriver.Chrome(service=s, options=chrome_options) WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally. WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally. (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
