Azure 1 год назад
Родитель
Сommit
68c3ea23f6
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      tasks/GameUi/game_ui.py

+ 3 - 3
tasks/GameUi/game_ui.py

@@ -236,13 +236,13 @@ class GameUi(BaseTask, GameUiAssets):
         sorted_paths = sorted(paths.items(), key=lambda kv: len(kv[1]))
         return sorted_paths
 
-    def ui_goto_page(self, dest_page: Page, confirm_wait=0, skip_first_screenshot=True, timeout: int = 60):
+    def ui_goto_page(self, dest_page: Page, confirm_wait=0, skip_first_screenshot=True, timeout: int = 60) -> bool:
         """前往指定page, 自动调用获取当前页面方法, 其他参数同ui_goto
         """
         self.ui_get_current_page()
-        self.ui_goto(dest_page, confirm_wait, skip_first_screenshot, timeout)
+        return self.ui_goto(dest_page, confirm_wait, skip_first_screenshot, timeout)
 
-    def ui_goto(self, destination: Page, confirm_wait=0, skip_first_screenshot=True, timeout: int = 60):
+    def ui_goto(self, destination: Page, confirm_wait=0, skip_first_screenshot=True, timeout: int = 60) -> bool:
         """
         Args:
             destination (Page):