先定位到上传按钮,然后设置要上传的本地文件存放的位置
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")