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.
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.