How to run Python Selenium with Chrome GUI on Ubuntu Container with Browserfull (NOT Browserless) on Docker on a WIndows 10 host PC?
I want to run Chrome Browser with Selenium Python from my Ubuntu container on my Windows 10 Host PC. I DO NOT want to run headless browser.
I want to change my Dockerfile to use Chrome browser with Selenium Python.
I have tried downloading Chromedriver, but it is failing.
I have tried out all the other suggestions from Google and Stackoverflow, but nothing is working. Any suggestions?
The following is my Dockerfile:
FROM ubuntu:latest
RUN apt-get update --fix-missing; \
apt-get install -y software-properties-common; \
rm -rf /var/lib/apt/lists/* ; \
add-apt-repository -y ppa:deadsnakes/ppa; \
apt update -y; apt upgrade -y; \
apt install -y python3.6; \
apt install -y python3-pip; \
yes | python3 -m pip install --upgrade pip; \
yes | python3 -m pip install virtualenv pip; \
apt-get install -y python3-venv; \
yes | python3 -m venv my_py_venv; \
add-apt-repository -y ppa:git-core/ppa; \
apt update -y ; \
apt install -y git; \
yes | python3 -m pip install --upgrade pip; \
yes | python3 -m pip install virtualenv; \
source my_py_venv/bin/activate; \
yes | pip3 install wheel; \
yes | pip3 install selenium; \
yes | pip3 install git+https://github.com/behave/behave; \
yes | pip3 install allure-behave; rm -rf /var/lib/apt/lists/*;
I have downloaded the ChromeDriver (https://chromedriver.storage.googleapis.com/index.html?path=83.0.4103.14/) but I am not sure which version to use (chromedriver_win32.zip OR chromedriver_linux64.zip).
And while instantiating the Chrome Browser instance, should I use Windows Directory Syntax ('\') or Linux Directory Syntax ('/') in the code below:
driver = webdriver.Chrome('/steps/chromedriver')
Thank you for your time and suggestions.