fix: failure on uploading data
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user