haha
This commit is contained in:
@@ -492,31 +492,31 @@ class BossRecruitHandler(BaseTaskHandler):
|
||||
|
||||
# 与 1.py 一致:a = page.get_frame(1)
|
||||
a = page.get_frame(1)
|
||||
time.sleep(random.uniform(0.5, 1.2))
|
||||
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, 1.2))
|
||||
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, 1.2))
|
||||
time.sleep(random.uniform(0.5, 5))
|
||||
|
||||
# 与 1.py 一致:btn-outline × 3
|
||||
for i in range(3):
|
||||
a.ele(f'x://*[@class="btn-v2 btn-outline-v2"]', timeout=2).click(by_js=True)
|
||||
time.sleep(random.uniform(0.5, 1.2))
|
||||
a.ele('x://*[@class="btn-v2 btn-outline-v2"]').click(by_js=True)
|
||||
time.sleep(random.uniform(0.5, 5))
|
||||
|
||||
# 与 1.py 一致:快速回复 + 发送
|
||||
page.ele(f'x://*[@data-placeholder="快速回复"]', timeout=2).input(FAST_REPLY_TEXT)
|
||||
page.ele(f'x://*[contains(text(),"发送")]', timeout=2).click()
|
||||
time.sleep(random.uniform(0.5, 1.2))
|
||||
time.sleep(random.uniform(0.5, 5))
|
||||
|
||||
# 与 1.py 一致:关闭面板
|
||||
page.ele('x://*[@class="iboss iboss-close"]').click()
|
||||
time.sleep(random.uniform(0.5, 1.2))
|
||||
time.sleep(random.uniform(0.5, 5))
|
||||
a.ele('x://*[@class="boss-popup__close"]').click()
|
||||
time.sleep(random.uniform(0.5, 1.2))
|
||||
time.sleep(random.uniform(0.5, 5))
|
||||
|
||||
panel_opened = False
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user