fix: failure on uploading data

This commit is contained in:
2026-08-14 10:44:43 +08:00
parent 36eac3ff28
commit b0b32c4bee
+1 -1
View File
@@ -498,7 +498,7 @@ def main(driver: WebDriver, logger = logging.getLogger('main')):
try:
span = locate(".mm-tbody table tbody tr:nth-child(1) td:nth-child(3) span:nth-child(1)", wait=False)
err = locate(".mm-tbody table tbody tr:nth-child(1) td:nth-child(5) .okki-space-item:nth-child(1) button", wait=False)
ok = locate(".mm-tbody table tbody tr:nth-child(1) td:nth-child(3) a", wait=False) if span.get_attribute('title') else None
ok = locate(".mm-tbody table tbody tr:nth-child(1) td:nth-child(3) a", wait=False) if span.text == '成功:0' else None
break
except: pass
try: click(".product-import-img-footer button.mm-button__primary", wait=False)