mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2025-12-16 19:55:12 +00:00
fix: close random popup in main after login
This commit is contained in:
parent
42a9c964c9
commit
9126c58e9c
@ -5,6 +5,7 @@ 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, UPDATE, SURVEY
|
||||
from tasks.base.assets.assets_base_page import MAIN_GO_TO_MAIL
|
||||
|
||||
|
||||
class Login(UI):
|
||||
@ -93,6 +94,10 @@ class Login(UI):
|
||||
continue
|
||||
if self.ui_additional():
|
||||
continue
|
||||
# press emulator back button when random popup in main
|
||||
if self.appear(MAIN_GO_TO_MAIL) and not self.match_color(MAIN_GO_TO_MAIL):
|
||||
self.device.u2.press("back")
|
||||
continue
|
||||
|
||||
return True
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user