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

Function find_item_10_task

modules/energy.py:102–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101# 10个商品任务
102def find_item_10_task():
103 logger.info('寻找浏览10个商品任务')
104 xpath = "//*[@text='去浏览'][parent::*[.//*[contains(@text, '10个商品')]] ]"
105 if d.xpath(xpath).exists():
106 d.xpath(xpath).click()
107 return True
108 else:
109 return False
110
111
112# 能量浏览任务

Callers 1

runFunction · 0.85

Calls 2

xpathMethod · 0.80
clickMethod · 0.80

Tested by

no test coverage detected