This commit is contained in:
Administrator
2026-03-06 15:30:11 +08:00
parent b992c8ee70
commit 9a96e927c3

View File

@@ -494,14 +494,22 @@ class BossRecruitHandler(BaseTaskHandler):
a = page.get_frame(1)
time.sleep(random.uniform(0.5, 5))
# 与 1.py 一致:打招呼
a.ele(f'x://*[contains(text(),"打招呼")]', timeout=2).click(by_js=True)
time.sleep(random.uniform(0.5, 5))
# 与 1.py 一致:收藏
a.ele(f'x://*[contains(text(),"收藏")]', timeout=2).click(by_js=True)
time.sleep(random.uniform(0.5, 5))
# 与 1.py 一致:打招呼
try:
a.ele(f'x://*[contains(text(),"打招呼")]', timeout=2).click(by_js=True)
time.sleep(random.uniform(0.5, 5))
except:
pass
try:
a.ele(f'x://*[@class="btn-v2 btn-sure-v2 btn-greet"]', timeout=2).click(by_js=True)
except:
pass
time.sleep(random.uniform(0.5, 5))
# 与 1.py 一致btn-outline × 3
for i in range(3):
a.ele('x://*[@class="btn-v2 btn-outline-v2"]').click(by_js=True)