diff --git a/assets/cn/login/ACCOUNT_CONFIRM.png b/assets/cn/login/ACCOUNT_CONFIRM.png new file mode 100644 index 000000000..3f08352e7 Binary files /dev/null and b/assets/cn/login/ACCOUNT_CONFIRM.png differ diff --git a/tasks/login/assets/assets_login.py b/tasks/login/assets/assets_login.py index e7f36c8f0..a91813695 100644 --- a/tasks/login/assets/assets_login.py +++ b/tasks/login/assets/assets_login.py @@ -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=[ diff --git a/tasks/login/login.py b/tasks/login/login.py index 412220ac0..fd1889ed9 100644 --- a/tasks/login/login.py +++ b/tasks/login/login.py @@ -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