From 234c092a04b02cf77acae427d051fa16662bb32d Mon Sep 17 00:00:00 2001 From: James Date: Mon, 30 Dec 2024 15:52:27 -0800 Subject: [PATCH] f1 fix --- F1_24/f1_24.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/F1_24/f1_24.py b/F1_24/f1_24.py index 0aae302..b01ad48 100644 --- a/F1_24/f1_24.py +++ b/F1_24/f1_24.py @@ -106,7 +106,10 @@ def navigate_startup(): user.press("enter") time.sleep(2) - +def offline_menu(): + result = kerasService.wait_for_word("Failed", timeout=50) + if not result: + logging.info("Didn't find the keyword 'Failed'") def run_benchmark(): """Runs the actual benchmark.""" remove_files(intro_videos) @@ -117,6 +120,8 @@ def run_benchmark(): time.sleep(2) navigate_startup() + offline_menu() + # Navigate menus and take screenshots using the artifact manager result = kerasService.wait_for_word("theatre", interval=3, timeout=60) if not result: