MCPcopy
hub / github.com/MonsterNone/tmall-miao / find_view_task

Function find_view_task

modules/jd_hb.py:50–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48# genericContainer -
49# genericContainer - 去完成
50def find_view_task():
51 logger.info('寻找浏览任务')
52 xpath = "//*[contains(@text, '浏览6秒')]/.././/*[@text='去完成']"
53 if d.xpath(xpath).exists():
54 d.xpath(xpath).click()
55 return True
56 else:
57 return False
58
59
60def find_item_5_task():

Callers 1

runFunction · 0.70

Calls 2

xpathMethod · 0.80
clickMethod · 0.80

Tested by

no test coverage detected