我正在使用Python处理Selenium,使用Chrome。当我到达图片上传的部分时,我会执行以下操作:
pictureChange = driver.find_element_by_xpath("//input[@class='custom-file' and @type='file']")
photoLocation = [I enter the file location on my locally mapped drive]
pictureChange.send_keys(photoLocation)
这似乎符合