Python Selenium Exception AttributeError: "'Service' object has no attribute 'process'" in selenium.webdriver.ie.service.Service Python Selenium Exception AttributeError: "'Service' object has no attribute 'process'" in selenium.webdriver.ie.service.Service selenium selenium

Python Selenium Exception AttributeError: "'Service' object has no attribute 'process'" in selenium.webdriver.ie.service.Service


Provided you have installed selenium, and assuming that earlier in the console's traceback log you also got something like "'chromedriver' executable needs to be in PATH" in your script, you should be able to do:

from selenium import webdriverdriver = webdriver.Chrome("/path/to/chromedriver")

This should tell your script where to find chromedriver. On a Mac you can usually use: /usr/local/bin/chromedriver


Download chromium driver from https://sites.google.com/a/chromium.org/chromedriver/downloads

Unzip the file and then from your code, write something like:

     from selenium import webdriver      driver = webdriver.Chrome("/path/to/chromedriver")

where /path/to/chromedriver is the location of your chromedriver.

This is the class declaration for Chrome Webdriver: selenium.webdriver.chrome.webdriver.WebDriver(executable_path='chromedriver', ...

taken from https://seleniumhq.github.io/selenium/docs/api/py/webdriver_chrome/selenium.webdriver.chrome.webdriver.html#module-selenium.webdriver.chrome.webdriver