Closed duyminh1998 closed 9 months ago
Per this commit, we should think about making a clicker class that will run .bat
or .ps1
scripts to click something (usually to close a window), but also check that the window has indeed been closed and restart the script as necessary. This will remove some flakiness induced by timing issues with our code. One piece of code that might break is the closeScenarioEndMessage.bat
script, which closes the message that displays when the scenario ends. If this message takes too slow to show up and we fire the script before its appearance, we will throw off our timing.
Summary
Sometimes the
MoveMouseEnterScenario.ps1
script is flaky and we miss the "Enter scenario" buttonSteps to reproduce
floridistan/restart_demo.py
several times and you might see the mouse gets moved beyond the "Enter scenario" button.What is the current bug behavior?
MoveMouseEnterScenario.ps1
does not always guarantee the movement of the mouse to the "Enter scenario" button and click on itWhat is the expected correct behavior?
MoveMouseEnterScenario.ps1
will always move the mouse to the "Enter scenario" button and click on itRelevant logs and/or screenshots