Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix 末日幻影快速挑战提示框无法识别并跳过 #407

Merged
merged 4 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 3rdparty/Fhoe-Rail
6 changes: 5 additions & 1 deletion tasks/challenge/apocalyptic.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,12 @@ def start_challenges(self):
if not self.start_challenge(level):
log.error(f"第{level}层挑战失败")
break

time.sleep(3)
if auto.find_element("3星通关所有", 'text', include=True):
auto.click_element("确认", 'text', max_retries=10, include=True)
auto.press_key("esc")
time.sleep(2)

screen.wait_for_screen_change('apocalyptic')

def find_level(self, level, max_retries=4):
Expand Down