danlabici / taskcluster-worker-checker

Script to check if any releng worker is missing in TC
1 stars 9 forks source link

[AutoReboot] Implement screen reading to detect connection. #136

Open danlabici opened 5 years ago

danlabici commented 5 years ago

Using pygui.locateOnScreen("screenshot", confidence=1.0) we can detect the iLO app and than look in the top left corner of the screen for the " _ " list that tells us we are successfully connected to it.

This will remove the "wait 5-10 seconds" after we click on the connect button, than wait for the connection and hope that in the specified time we gonna be connected, part of the code which ain't very pretty.