我無法使用 pythons Selenium 上傳影像:
driver.find_element_by_xpath('//*[@id="uploadButton"]').send_keys("image_path")


一個這個:

uj5u.com熱心網友回復:
要像您嘗試那樣使用 Selenium 上傳檔案,您應該使用//input[@type="file"]element.
所以請試試這個,它應該作業:
driver.find_element_by_xpath('//input[@type="file"]').send_keys("image_path")
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/411737.html
標籤:
