我有一个硒代码来打开一个网址,结果如下图所示:
我想等到字符串“In Progress”丢失后再继续执行代码。我已经使用了代码:
while(1):
if not wait.until(EC.text_to_be_present_in_element((By.XPATH, '/html/body/div[1]/div[2]/div[3]/table/tbody/tr[1]/td[2]/span'),'In Progress')):
print('Completed')
break
但是当字符串“In Progress”已经丢失时,我得到 selenium.common.exceptions.TimeOutException。有什么线索吗?
