SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape error using Selenium and Python
06:30 26 Apr 2022

I'm confused as to what is causing this error:

The chrome version is 100.0.4986 which is the latest Google chrome version

Python version is 3.9.1: Python version

Chrome web driver version is 100.0: Chrome webdriver version

Path and location of web driver(ADDED.exe):

Path and location of web driver

Modified code below based on feedback:

   from selenium import webdriver

driver = webdriver.Chrome(executable_path=r'C:\Users\sanas\OneDrive\CSIT 110 Python\chromedriver.exe')

driver.get("https://www.google.com")

Error:

CMD

python python-3.x selenium selenium-webdriver webdriver