While working with Selenium v3.x, ChromeDriver and Chrome Browser you may need to pass the argument executable_path
along with the absolute path of the ChromeDriver binary through either of the following options:
- Double back slashes i.e.
(\\)
- Single back slash i.e
(\)
along with the raw(r)
switch. - Binary extension i.e.
(.exe)
So you have to change the line :
browser = webdriver.Chrome("C:Users/Colin/Python/chromedriver")
With :
browser = webdriver.Chrome(executable_path=r'C:\Users\Colin\Python\chromedriver.exe')
More Related Contents:
- Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed
- WebDriverException: Message: ‘chromedriver’ executable needs to be in PATH while setting UserAgent through Selenium Chromedriver python
- unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed with ChromeDriver Selenium
- ‘Webdrivers’ executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
- WebDriverException: unknown error: cannot find Chrome binary error with Selenium in Python for older versions of Google Chrome
- How to work with a specific version of ChromeDriver while Chrome Browser gets updated automatically through Python selenium
- WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 127
- What is the fastest way to open urls in new tabs via Selenium – Python?
- Clicking on Get Data button for Monthly Settlement Statistics on nseindia.com doesn’t fetch results using Selenium and Python
- How to download XML files avoiding the popup This type of file may harm your computer through ChromeDriver and Chrome using Selenium in Python
- TypeError: ‘module’ object is not callable error with driver=webdriver(“C:\\Python34\\Lib\\site-packages\\selenium\\webdriver\\chromedriver.exe”)
- SessionNotCreatedException: This version of ChromeDriver only supports Chrome version 84 using ChromeDriver and Chrome through Selenium and Python
- How to solve ‘Getting Default Adapter failed’ error when launching Chrome and try to access a webpage using the ChromeDriver using Selenium
- Chrome browser initiated through ChromeDriver gets detected
- WebDriverException: Service U:/Scraping/chromedriver.exe unexpectedly exited. Status code was: 1 while working with Chrome and Python
- Selenium – Python – AttributeError: ‘WebDriver’ object has no attribute ‘find_element_by_name’
- USB: usb_device_handle_win.cc:1020 Failed to read descriptor from node connection error with ChromeDriver v87 / Chrome v87 using Selenium on Windows10
- InvalidArgumentException: Message: invalid argument: user data directory is already in use error using –user-data-dir to start Chrome using Selenium
- selenium.common.exceptions.WebDriverException: Message: invalid session id using Selenium with ChromeDriver and Chrome through Python
- Download file through Google Chrome in headless mode
- WebDriverException: Message: Service /usr/lib/chromium-browser/chromedriver unexpectedly exited on Raspberry-Pi with ChromeDriver and Selenium
- urllib3.exceptions.ProtocolError: (‘Connection aborted.’, error(10054, ‘An existing connection was forcibly closed by the remote host’))
- Set chrome browser binary through chromedriver in Python
- DeprecationWarning: use options instead of chrome_options error using ChromeDriver and Chrome through Selenium on Windows 10 system
- Selenium on MAC, Message: ‘chromedriver’ executable may have wrong permissions
- Chrome crashes after several hours while multiprocessing using Selenium through Python
- How to accept the popup presented when installing extension in Selenium?
- Why switching to alert through selenium is not stable?
- Selenium can’t open a second page
- Python Selenium driver.execute_script WebDriverException: Message: unknown error: call function result missing ‘value’