【发布时间】:2022-09-23 18:58:07
【问题描述】:
当我运行文件时,它会自动关闭而不需要 driver.close()
driver = webdriver.Chrome()
driver.get(\"https://www.roblox.com/login\")
searchbox = driver.find_element(\"xpath\",\'//*[@id=\"login-username\"]\')
searchbox.send_keys(\"ade\")
passwordsearch = driver.find_element(\"xpath\",\'//*[@id=\"login-password\"]\')
passwordsearch.send_keys(\"abcde\")
-
也发布堆栈错误。似乎 chromedriver 版本与 chrome 浏览器版本不兼容。