duyminh1998 / pycmo

Command Modern Operations Learning Environment
Other
49 stars 23 forks source link

Improve reliability of scripts that click on windows #30

Closed duyminh1998 closed 9 months ago

duyminh1998 commented 9 months ago

We should

improve the reliability of protocol.py when it executes scripts that are meant to click on and close windows (e.g. closeScenarioEndMessage.bat and MoveMouseEnterScenario.ps1)

Because

we currently rely on timing (i.e. sleep) in the scripts themselves to ensure correct timing. This is not always going to be reliable per the discussion in this comment. We need to create a module in protocol.py that will check the existence of the window to be closed, and restart the script to close the window as necessary.

Complexity

Easy to medium

Definition of Done

We have more certainty that when we run scripts that close windows they actually finish and can verify that the windows have been closed