diff --git a/main.py b/main.py index 660e636..9616825 100644 --- a/main.py +++ b/main.py @@ -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.text == '成功:0' 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)