當我使用此代碼時,使用 Python 在 Selenium 中上傳文件會出錯,有人可以幫我解決這個問題嗎?from selenium import webdriverfrom selenium.webdriver.common.keys import Keysdriver=webdriver.Chrome(executable_path="C:\\Users\Archi\PycharmProject\chrome driver\chromedriver")driver.get("https://www.freshersworld.com/user/register")driver.implicitly_wait(10)upload="C://Users/Archi/Downloads/resume testing/Resume testing"driver.find_element_by_id("file-upload").send_keys("upload")錯誤:selenium.common.exceptions.InvalidArgumentException:消息:參數無效:找不到文件:上傳即使我也從這種方式檢查,然后也顯示錯誤。C:/Users/Archi/Downloads/resume testing/Resume testingC:\Users\Archi\Downloads\resume testing/Resume testingC:\\Users\Archi\Downloads\resume testing/Resume testing
selenium.common.exceptions.InvalidArgument
慕田峪9158850
2023-01-04 16:51:03