Hello Team,
I want to test a simple RobotFramework selenium script which
will launch Google website and then do a simple search. The script is
running fine when I am executing it directly without docker-compose (
meaning directly via the command robot Selenium.robot), now when I am
trying to run via docker-compose up, it is throwing me this error:`
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/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
This is what I am written in my Dockerfile:
RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
&& dpkg -i google-chrome*.deb
&& rm google-chrome*.deb
&& wget -q https://chromedriver.storage.googleapis.com/89.0.4389.23/chromedriver_linux64.zip
&& unzip chromedriver_linux64.zip
&& rm chromedriver_linux64.zip
&& mv chromedriver /usr/local/bin
&& chmod +x /usr/local/bin/chromedriver
Br,
Sayom