wd.find_element(By.XPATH, "//span[text()='单张模式']").click()
# 点上传按钮
wd.find_element_by_class_name('btn').click()
# 上传
wd.find_element(By.XPATH, "//input[@type="file"]").send_keys(filelist1[i])
# 选老照片修复
wd.find_element(By.XPATH, "//img[@alt="老旧照片修复"]").click()
# 创建任务¥
wd.find_element(By.XPATH, "//div[text()='创建任务']").click()
# # 选 成品二次修复
sleep(2)
wd.find_element(By.XPATH, "//div[@class='item current']//img").click()
wd.find_element(By.XPATH, "//img[@alt="老旧照片修复"]").click()
# # 创建任务¥
wd.find_element(By.XPATH, "//div[text()='创建任务']").click()
# # 选二次修复后的照片
wd.find_element(By.XPATH, "//div[@class='item current']//img").click()
#
# # 点击下载
wd.find_element(By.XPATH, "//span[@class="anticon anticon-download"]").click()
sleep(2)
wd.execute_script("window.history.go(-1)")
|