mirror of
https://github.com/LTTLabsOSS/markbench-tests.git
synced 2026-01-08 21:48:00 -05:00
Stellaris close patch notes (#165)
Added a few lines for patch notes handling if it does pop up
This commit is contained in:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user