Commit 837f9726 by lei

1

parent 49594088
......@@ -244,7 +244,6 @@ class ToWork:
text_el = await self.FindElement(page, text_path, 'last')
if text_el:
title = await page.evaluate('(element) => element.textContent', text_el)
logger.info(title)
# 判断失败
if 'Failed to process your command' in title:
logger.info('本次任务失败')
......@@ -285,7 +284,7 @@ class ToWork:
logger.info(title)
else:
logger.info('未找到文本')
await asyncio.sleep(2)
await asyncio.sleep(1)
# 循环输入指令
async def enter_prompt(self, page, tasks):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment