

Github Few errors which we resolved during this entire setup GitHub: Where the world builds software . Options.add_argument(‘ - disable-dev-shm-usage’)ĭriver = webdriver.Chrome(executable_path=’./chromedriver’, chrome_options=options) Python - version - it should be 3.7 Now - Run Selenium Code on Linux using headless Google ChromeĬd /home/seleniumtest (Same location where chromedriver downloaded)įrom import Options

Mv /usr/bin/python2.7(Few might have folder as python) /usr/bin/python_old Symbolic reference link of python removed Rm python (rm: remove symbolic link ‘python’ ?) will be displayed If reference link python -> python2.7 available we need to remove It will display python2.7 and reference link or python or python2.7 folder with python name and no reference link Setup is done so now we can switch to Python3.7. This will unzip chromedriver into seleniumtest folder Sudo yum localinstall google-chrome-stable_current_x86_64.rpmĬd /home/seleniumtest (if folder not created, please create) (As we are using putty) we will not able to launch Chrome and validate UI - we need to validate details using command - mainly Chrome Version: Zipp=3.4.0 Now you need to install google chrome and chrome driver on Linux Sample requirment.txt (copy everything into notepad, save as requirement.txt) Sudo ln -s python3.7 python First Install PIP and required libraries Mv /usr/local/bin/python3.7 /usr/bin/python Mv /usr/bin/python2.7 /usr/bin/python_old Python3.7 - version Please do not execute below commands as yum will be stopped.

This will help to make sure python 3 installed If you will search - Stackoverflow and everyone suggesting to move python location using below commands. Reason is, Default python path still link to Python2.7 Python - version or python3 - version will not give required version Please do not install using - yum install -y python3 - It will install python 3.6* Which Python will give location as /usr/bin Now install python 3.7 Python -V or python - version (will give python version as 2.7.5) Once OS confirmed as Centos - Check Python is installed or not - By default many Linux virtual instance dependent on python and having python 2.7.5 preinstalled.

OS version will help to search future references because if we execute Ubuntu commands on CentOS - it will not work Video: Once able to access Cloud instance Please follow below steps.
