import os from selenium import webdriver from selenium.webdriver.chrome.options import Options os.system(r'start chrome --remote-debugging-port=9527 --user-data-dir="D:\selenium"') options = Options() options.add_experimental_option("debuggerAddress", "127.0.0.1:9527") # service = Service('chromedriver.exe') driver = webdriver.Chrome() driver.get('https://www.baidu.com/') print(driver.title)
求大神解决方法
selenium 4.9 可以正常运行 , 4.11 报错