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!