![]() ![]() It means either your chrome installation is not done or not correct. Please do following if you encounter any one of the following errors while initializing chrome webdriver. ![]() driver = webdriver.Chrome( '/usr/bin/chromedriver',chrome_options=chromeOptions)Ĭommonly encountered errors while intializing Chrome webdriver chromeOptions = webdriver.ChromeOptions()ĬhromeOptions.add_argument( "-headless")ĬhromeOptions.add_argument( "-remote-debugging-port=9222")ĬhromeOptions.add_argument('-no-sandbox') So we need to add following options before initializing the webdriver. I am running Chrome as headless on Centos. ![]() Lets try using the Selenium now in Ipython. We also need to install package chromedriver. pip install selenium Collecting selenium Using cached Requirement already satisfied: urllib3 in /home/anaconda3/lib/python3.7/site-packages (from selenium) (1.24.2) Installing collected packages: selenium Successfully installed selenium-3.141.0 I will be using Python Selenium for this post. yum localinstall google-chrome-stable_current_x86_64.rpm I have also put together a small section at the end to cover "most commonly errors" during installation. This post goes through step by step tutorial to install Selenium and Chrome. Installing Chrome and Selenium can be quite challenging. How To Install Selenium Chrome On Centos 7 ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |