1

I want to run Selenium in Google Colab (Selenium: 4.8.2, Python: 3.8.10). But when installing the web driver I get an error:

AttributeError: 'Service' object has no attribute 'process'

My code:

!pip install selenium

from google.colab import drive
drive.mount('/content/drive')

from selenium import webdriver
from selenium.webdriver.chrome.service import Service

path = "drive/MyDrive/chromedriver_win32/chromedriver.exe"
driver = webdriver.Chrome(service=Service(path))

My browser: Google Chrome 110.0.5481.178

Driver: Latest stable release: ChromeDriver 110.0.5481.77

OS: Windows 10

Why does such an error occur? What am I doing wrong? Thanks for the help!

sound wave
  • 3,191
  • 3
  • 11
  • 29
Kate
  • 133
  • 7
  • 2
    You can read this [thread](https://stackoverflow.com/questions/51046454/how-can-we-use-selenium-webdriver-in-colab-research-google-com) how you worked with selenium in CoLab. – Md Sadiquzzaman Feb 24 '23 at 18:53

0 Answers0