Fix: Click account confirm at login

just donno why there is a button to confirm login this account even if there is only one account
This commit is contained in:
LmeSzinc 2024-09-15 02:48:51 +08:00
parent 543dd27e0e
commit f0607ffe95
3 changed files with 14 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -3,6 +3,17 @@ from module.base.button import Button, ButtonWrapper
# This file was auto-generated, do not modify it manually. To generate:
# ``` python -m dev_tools.button_extract ```
ACCOUNT_CONFIRM = ButtonWrapper(
name='ACCOUNT_CONFIRM',
cn=Button(
file='./assets/cn/login/ACCOUNT_CONFIRM.png',
area=(583, 424, 696, 450),
search=(563, 404, 716, 470),
color=(172, 145, 92),
button=(583, 424, 696, 450),
),
en=None,
)
LOGIN_CONFIRM = ButtonWrapper(
name='LOGIN_CONFIRM',
share=[

View File

@ -3,7 +3,7 @@ from module.exception import GameNotRunningError
from module.logger import logger
from tasks.base.page import page_main
from tasks.base.ui import UI
from tasks.login.assets.assets_login import LOGIN_CONFIRM, LOGIN_LOADING, USER_AGREEMENT_ACCEPT
from tasks.login.assets.assets_login import *
from tasks.login.cloud import LoginAndroidCloud
@ -62,6 +62,8 @@ class Login(UI, LoginAndroidCloud):
continue
if self.appear_then_click(USER_AGREEMENT_ACCEPT):
continue
if self.appear_then_click(ACCOUNT_CONFIRM):
continue
# Additional
if self.handle_popup_single():
continue