Close patch notes

Added a few lines for patch notes handling if it does pop up
This commit is contained in:
snguyen-lmg
2025-10-01 10:28:34 -07:00
committed by GitHub
parent 184dd75e09
commit a7b12f443c

View File

@@ -70,6 +70,15 @@ def run_benchmark(keras_host, keras_port):
time.sleep(5)
am = ArtifactManager(LOG_DIR)
patchnotes = keras_service.wait_for_word("close", interval=0.5, timeout=100)
if patchnotes:
gui.moveTo(patchnotes["x"], patchnotes["y"])
time.sleep(0.2)
gui.mouseDown()
time.sleep(0.2)
gui.mouseUp()
time.sleep(0.2)
result = keras_service.wait_for_word("credits", interval=0.5, timeout=100)
if not result:
logging.info("Could not find the paused notification. Unable to mark start time!")
@@ -79,7 +88,7 @@ def run_benchmark(keras_host, keras_port):
if not result:
logging.info("Did not find the settings button. Is there something wrong on the screen?")
sys.exit(1)
gui.moveTo(result["x"], result["y"])
time.sleep(0.2)
gui.mouseDown()