import undetected_chromedriver as uc
from selenium.webdriver.common.by import By

options = uc.ChromeOptions()
options.headless = True  # opcional

# Ruta al chromedriver manual
driver = uc.Chrome(
    options=options,
    driver_executable_path="./chromedriver",  # asegúrate que esta ruta es correcta
    version_main=120
)

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