Error Initialization Driver, versions

18 views
Skip to first unread message

Jonas Zaoui

unread,
Nov 10, 2024, 7:18:29 AM11/10/24
to Selenium Users
Hello !
When i run my script locally, it's running, but when i use docker container, i got this error :

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 130.0.6723.69 with binary path /usr/bin/chromium


This is my Dockerfile ;

FROM python:3.12-slim RUN apt-get update && apt-get install -y \ libglib2.0-0 \ libnss3 \ libgconf-2-4 \ libfontconfig1 \ ffmpeg \ libsm6 \ libxext6 \ chromium RUN pip install poetry RUN poetry config virtualenvs.create false WORKDIR /app COPY pyproject.toml poetry.lock ./ RUN poetry install --no-dev EXPOSE 5000

And this is my line error code :

service = Service(ChromeDriverManager().install()) self.driver = webdriver.Chrome(service=service, options=chrome_options) Thanks for help !

I dont understand why webdiver-manager did not deal with version mismatching, and how fix this error.

Thanks

Reply all
Reply to author
Forward
0 new messages