You need to set the path to you chromedriver.exe, you can download it here, depending on your installed chrome version.this is the error i am getting View attachment 297415
You have to download and put chromedrive in the same folder as the script,this is the error i am getting View attachment 297415
yes it's the script that you sharedYou need to set the path to you chromedriver.exe, you can download it here, depending on your installed chrome version.
https://chromedriver.chromium.org/downloadsIDK for sure, if this script works without editing, I remember that I shared it, but it was a part of a larger script I used - so there might be other dependency errors.
from selenium.webdriver.chrome.service import Service
service = Service(executable_path="your path")
options = webdriver.ChromeOptions()
driver = webdriver.Chrome(service=service, options=options)
You'll probably get problems if you're using the latest chrome version(s) as well,yes it's the script that you shared
# Define the paths to chromedriver and chromium
chromedriver_path = './chrome-win/chromedriver.exe'
chromium_path = './chrome-win/chrome.exe'
# Create a new instance of the Chrome driver
options = uc.ChromeOptions()
options.binary_location = chromium_path
driver = uc.Chrome(executable_path=chromedriver_path, options=options)