先定位到上傳按鈕,然後設置要上傳的本地文件存放的位置
self.driver.find_element_by_xpath("//input[@type='file']").send_keys("C:\Users\Downloads\cd.PNG")
先定位到上傳按鈕,然後設置要上傳的本地文件存放的位置
self.driver.find_element_by_xpath("//input[@type='file']").send_keys("C:\Users\Downloads\cd.PNG")