haah
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user